Chat JS seems to be offering dark and light mode support according to this GitHub PR: https://github.com/chartjs/Chart.js/pull/8685
The question is, how to call colorMode: "auto" in ChartKick as ChartJS default is none...
Chat JS seems to be offering dark and light mode support according to this GitHub PR: https://github.com/chartjs/Chart.js/pull/8685
The question is, how to call colorMode: "auto" in ChartKick as ChartJS default is none...
Copyright © 2021 Jogjafile Inc.
The mr got closed, so there is no
colorModeoption 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].backgroundColorandoptions.scales[scaleId].grid.color. That will make most of your chart be visible on light and dark