Dashboard 2.0 - UI Chart

Hi all,

I’m using the Node-RED Dashboard 2.0 chart node and I noticed that in the GUI I can manually pick colors for up to 9 series. For series 10 and above, the colors seem to be assigned automatically and I don’t see a way to control them.

Is there any method to dynamically assign colors to series beyond the first 9? For example, can I copy colors from the first series or set a custom color for each series via a function node or msg.options?

I’d appreciate any suggestions or workarounds.

Thanks in advance!

data from chart:

[
  { type: "Time not sheduled", kolejnosc: 2, time: 0x5 },
  { type: "Total operations time", kolejnosc: 3, time: 23 },
  { type: "Planned downtime loses", kolejnosc: 4, time: 0 },
  { type: "RunTime", kolejnosc: 5, time: 22 },
  { type: "Downtime loses", kolejnosc: 6, time: 4 },
  { type: "Operating time", kolejnosc: 7, time: 18 },
  { type: "Speed loss", kolejnosc: 8, time: 0 },
  { type: "Net Operating Time", kolejnosc: 9, time: 18 },
  { type: "Quality loss", kolejnosc: 11, time: 0 },
  { type: "Valuable time", kolejnosc: 12, time: 18 }
]

Welcome to the forum @rzuczek.

After the 9 colours are used up, the chart will just repeat them.

In dashboard 1 this problem was addressed by adding a further 24 colours in the javascript source.

This rather unwieldy fix has not been duplicated in dashboard 2 and there is basically nothing you can do about it.