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

lizbanach picture lizbanach  路  3Comments

gabrieldesouza picture gabrieldesouza  路  3Comments

adriantombu picture adriantombu  路  3Comments

akashrajkn picture akashrajkn  路  3Comments

joebirkin picture joebirkin  路  3Comments