netdata / netdata-cloud

The public repository of Netdata Cloud. Contribute with bug reports and feature requests.
GNU General Public License v3.0
41 stars 16 forks source link

[BUG] Chart dimensions color in the legend and within the chart do not match #192

Closed manos-saratsis closed 2 years ago

manos-saratsis commented 2 years ago
**Describe the bug** The chart dimensions are ordered by value but the colors within the chart do not match **To Reproduce** Steps to reproduce the behavior: Go to a stacked chart, order dimensions and switch the chart type to line. More cases might exist **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Error logs** 1. Open developer devtools (e.g for [chrome](https://developers.google.com/web/tools/chrome-devtools/open) 2. Submit a screenshot or better a [HAR file](https://support.zendesk.com/hc/en-us/articles/204410413-Generating-a-HAR-file-for-troubleshooting) **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
zeylos commented 2 years ago

Was able to reproduce only by switching dimension sorting to one of the descending (no matter the vizualization style, area, line or stacked) : image image

Not attaching the screenshot for value sorting but the same happens with Max→Min. It seems that the color shown is the one of the last item in the list.

Pingger commented 2 years ago

Can confirm this to also be the case for Min -> Max (at least for Applications cpu graph, where all sortings except for default are broken)

hugovalente-pm commented 2 years ago

@zeylos and @Pingger this fix was released, if you still find anything not looking ok let us know