grafana / piechart-panel

Pie Chart Panel Plugin
MIT License
151 stars 101 forks source link

Add support for color names in aliasColors #225

Open andrasg opened 4 years ago

andrasg commented 4 years ago

I am trying to setup my pie chart with unified colors throughout the dashboard. I have copied the colors, I have setup on a regular graph and copied the aliasColors section and pasted it into PanelJSON for the piechart:

  "aliasColors": {
    "balconyReindeer": "dark-orange",
    "bedroomAC": "dark-blue",
    "hob": "super-light-green",
    "livingroomAC": "blue",
    "microwave": "semi-dark-purple",
    "oven": "dark-purple",
    "radiatorpump": "semi-dark-blue",
    "sonoff-cooktop": "light-purple",
    "sonoff-dishwasher": "light-green",
    "sonoff-fridge": "dark-green",
    "sonoff-fridge-ds": "green",
    "sonoff-hainfra": "semi-dark-yellow",
    "sonoff-iron": "dark-green",
    "sonoff-itinfra": "dark-yellow",
    "sonoff-ps": "dark-red",
    "sonoff-washmachine": "semi-dark-green",
    "ufhpump": "dark-blue",
    "warmwatercirculation": "light-blue"
  }

It seems the piechart doesn't understand most of the more complex colors:

image