ChartJSCore icon indicating copy to clipboard operation
ChartJSCore copied to clipboard

GridLines renamed in v3

Open SaltySeaSlug opened this issue 4 years ago • 3 comments

Hi,

Just want to bring to your attention;

GridLines has been renamed in Chart.js v3.x to Grid along with a few other changes in property names

https://www.chartjs.org/docs/3.7.1/getting-started/v3-migration.html#ticks

SaltySeaSlug avatar Mar 09 '22 07:03 SaltySeaSlug

Hi, thanks for pointing that out. I think I've updated all the relevant properties now and have published v3.1.0 with the changes but let me know if you spot anything else I've missed.

mattosaurus avatar Mar 11 '22 11:03 mattosaurus

Hi,

Noticed that common properties for axes are missing from your scale base; Few were removed from the Tick and Time classes respectively;

scales.[x/y]Axes.ticks.beginAtZero was renamed to scales[id].beginAtZero

/* MERGED PROPERTIES */ scales.[x/y]Axes.ticks.max was renamed to scales[id].max scales.[x/y]Axes.ticks.min was renamed to scales[id].min scales.[x/y]Axes.time.max was renamed to scales[id].max scales.[x/y]Axes.time.min was renamed to scales[id].min

scales.[x/y]Axes.ticks.reverse was renamed to scales[id].reverse scales.[x/y]Axes.ticks.suggestedMax was renamed to scales[id].suggestedMax scales.[x/y]Axes.ticks.suggestedMin was renamed to scales[id].suggestedMin

https://www.chartjs.org/docs/3.7.1/axes/#common-options-to-all-axes

SaltySeaSlug avatar Mar 11 '22 12:03 SaltySeaSlug

Thanks, the axes had changed more than I'd expected. I've updated these and pushed out v3.2.0.

mattosaurus avatar Apr 01 '22 10:04 mattosaurus