Chartjs-Support for dark and light mode in ChartKick

0👍

The mr got closed, so there is no colorMode option in chart.js. To achieve a dark/light mode you will need to adjust all of the colors yourself.

The main colors you want to adjust are data.datasets[datasetIndex].backgroundColor and options.scales[scaleId].grid.color. That will make most of your chart be visible on light and dark

Leave a comment