Dark mode for charts #1163
Replies: 1 comment 4 replies
-
Great idea. I've implemented several of those you refer to. The ones using chart.js are ok. For those I checked that the background was not white, then changed the css with jquery. For the ones using Highcharts (Distances Worked and Timeplotter), I did not do a dark mode. Those were done quite a while before I added the themes. I have researched this, and I have found information about it, but it is something I've never gotten around to implement. Here are the links I've found: The last one seems to be Statistics. I do not know how to do this in dark mode, but it seems to be something from Google. Look in views/statistics/index.php. And to answer how the maps where done. They were done with CSS (they were not done by me). Look in overrides.css in the css folder. .leaflet-tile { Hope this answers your question well enough. Andreas. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Generally I prefer the dark mode in web applications. The charts within Analytics do not respect the dark mode setting (when using a dark theme) although the maps (e.g. gridsquares) do. I'd like to change that. Could anybody give me a hint on how it was done for maps? In a quick look at the code I could not find a "dark" parameter being passed to the map.
Thanks for your support.
Edit:
Just noticed that it works for some charts but not all. Basically I just want to know what the "flag/trigger" is that causes dark mode to be used. How to do it for each chart I'll research myself.
Beta Was this translation helpful? Give feedback.
All reactions