Under admin > dashboard > consolidated page views, it looks to me like the legend colors are swapped. Clearly lighter color blue is the largest value in the chart, yet the numbers for it in the legend are smaller than the dark blue.
AI-generated summary
In the Discourse dashboard under admin > dashboard > consolidated page views, users reported that the barchart legend colors appeared swapped — the lighter blue, visually representing the largest value, was labeled with smaller numbers than the darker blue. John_Lehmann first noted the issue, confirming it disappeared in safe-mode, suggesting a theme-related bug, likely tied to the stock Dark Theme. j.jaffeux initially suspected a caching issue but later clarified the root cause: a visual illusion caused by transparency interacting with the dark background and random color rendering. The fix, implemented in this pull request, removes transparency for legend colors in dark themes and introduces a mechanism to lighten colors for better contrast. bloomexperiment independently observed that the chart colors remained tied to the default theme regardless of user profile theme settings, further supporting the theme-specific nature of the bug. The issue was resolved without requiring user-side cache clearing or theme changes, and the corrected chart now accurately reflects color-to-value mapping in dark mode.
Indeed this is weird, do you have the same results with safe-mode ? no repro here.
In safe-mode, it looks correct. Since I haven’t added any plugins, I suspect this is a bug with respect to the stock Dark Theme.
Indeed seems that’s it. Did you change to dark theme recently ?
I started using and administering discourse recently. ![]()
I noticed this too, just tried again to isolate the problem.
I think the bar chart seems to use the colour scheme of the default theme - when I change my theme in my profile to something else other than the default theme on my site, the bar chart colours seem to remain the same.
Yes I expect it to be cache related. Will dig more next week.
So it was not what I thought ![]()
The fix is kind of simple:
https://github.com/discourse/discourse/pull/7495
Long story short: by a combination of transparency and dark background and RNG, the color looked inverted on dark background when they were in fact correct. So I have removed transparency in this case and added a way to “lighten” colors.

