You also also set the colors using a
msg.ui_control = {"colors":['#FF0000', '#00FF00', '#0000FF', '#000000', '#000000', '#000000', '#000000', '#000000', '#000000']};
right before the final
return msg;
in any object in front of the chart node.
Example would turn first 3 attached sources into red, green, blue .....
And as long as you ensure the order of the msgs being served all remains pretty static.
Though it doesn't work straight out of the box since it does require an update on the displayed webpage after such a change. Means if the flow gets started by an injection most times nothing happens until the next inject does take place of if you simply press the update button on the displaying browserpage.
2 Likes