Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Scales defaults for "grid.color" and "ticks.color" not updating

Open teodorachiosa opened this issue 5 months ago • 1 comments

Expected behavior

Just like the legend and tooltip color, I expect the scale colors to be updated when the color changes.

Current behavior

The scale grid color and ticks color only update once. Updating the chart (chart.update()) doesn't trigger the color changes.

Reproducible sample

https://codepen.io/teodorachiosa/pen/yLmNPMy

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

We use a theme switcher to change between a light and a dark mode. We needs to update the defaults when the theme changes.

chart.js version

4.4.4

Browser name and version

Chromium: 129.0.6668.70 (Official Build) (64-bit)

Link to your project

No response

teodorachiosa avatar Sep 27 '24 11:09 teodorachiosa