Chart Series Get Reversed


#1

In this case I am using the Chart widget in Pie mode.
I notice that after I restart Node Red that my chart series/colors get reversed.
See image.
Chart%20Reverse

How can I fix this?

Thanks...


#2

they just get reversed in the legend? or in the pie chart as well?


#3

FIFO order. First portion of data (topic) gets first color.
Possible workaround


#4

So, there is something wrong with that implementation. It should be color/series assigned to topic. Not auto assigned. Is this a bug?


#5

No bug here. Topics get relation to the color as they appear and this relationship stays until relevant data has been lost. That's the way it is.


#6

No way to manually assign color to series/topic?


#7

No as far I know.


#8

Bummer... :frowning:


#9

a workaround is to use an inject on start to inject two message in the order you want with the correct topics. Then any subsequent data arriving will be as you want. Or you may be able to force your data to arrive in the correct order by some other means... depends on the data source(s) of course.


#10

I guess I can try that, but it's sort of messy...