VKCOM/statshouse

ui/api: smarter color selection

flyingmutant opened this issue · 1 comments

Right now, we base the color choice on both the metric name and the series name -- which results in dashboards using different colors for essentially same series. It would be better to have consistent colors on dashboards, but when we have no series names fall back to metric name.

Also, for time-shift colors we should use different ones when there is only 1 series on the graph.