question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Global setting for grid lines color

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
simonbrunelcommented, Dec 10, 2017

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

1reaction
kurklecommented, Jul 8, 2021

In chart.js v3 the gridLines was renamed to grid

Read more comments on GitHub >

github_iconTop Results From Across the Web

Style Settings
Use the Style configuration page to define style settings such hiding or showing gridlines, changing fonts and modifying the color palette.
Read more >
Change the color of gridlines in a worksheet - Microsoft Support
In the Gridline color box, click the color you want. Gridline color settings in the Excel Options dialog box. Tip: To return gridlines...
Read more >
charts.js global options gridLines - Stack Overflow
You can set a transparent color for the grid lines: scales: { xAxes: [{ display: true, gridLines: { color: 'rgba(0,0,0,0)' }, ... }],...
Read more >
How to use rulers, grids, and guides in Illustrator
Set Smart Guides preferences · Color. Specifies the color of the guides. · Alignment Guides. Displays guide lines that are generated along the ......
Read more >
Gridlines in Excel - Overview, How To Remove, How to ...
Gridlines are displayed in a workbook using a grey color that is applied automatically. If you want o change the gridline colors, Go...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found