hastic-zzz / hastic-grafana-app

Hastic data management server for labeling patterns and anomalies in Grafana
https://hastic.io
GNU General Public License v3.0
179 stars 18 forks source link

Generate new colors for new patterns #18

Closed jonyrock closed 6 years ago

jonyrock commented 6 years ago

image

Would nice to have if you create patterns, than colors would be different. Its like when we create new metrics in graphs

sankerust commented 6 years ago

@jonyrock please review and tell what we need

https://github.com/hastic/hastic-grafana-graph-panel/pull/23

jonyrock commented 6 years ago

@sankerust I think it's better to start with palette of colors So you work in assumption that all your metrics have default color (user doesn`t set color to any metric) and you know what:

and you should thing how red and patterns looks together

Then you will come up to necessary subtasks.

I think you can start with array = ['red', 'yellow', 'purple', ...] and set color for next patter corresponding next color