Chart.js: [FEATURE] Global setting for grid lines color

Created on 10 Dec 2017  Â·  2Comments  Â·  Source: chartjs/Chart.js

It's possible to change globally the default grid lines color?
I have several Charts in a page and can change the color one by one, for each axis, using the gridLines option; having a global setting like Chart.defaults.global.defaulGridColor = "#ddd" would be useful.

support

Most helpful comment

You should already be able to do that using Chart.defaults.scale.gridLines.color = "#ddd"?

All 2 comments

You should already be able to do that using Chart.defaults.scale.gridLines.color = "#ddd"?

That's working, thank you. I apologize, was looking in the wrong docs section.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

longboy picture longboy  Â·  3Comments

HeinPauwelyn picture HeinPauwelyn  Â·  3Comments

JAIOMP picture JAIOMP  Â·  3Comments

lizbanach picture lizbanach  Â·  3Comments

joebirkin picture joebirkin  Â·  3Comments