# Chart line colours

**URL:** <https://discourse.nodered.org/t/chart-line-colours/7296>\
**Category:** Dashboard\
**Created:** [27 January 2019 08:06 UTC](https://discourse.nodered.org/t/chart-line-colours/7296 "2019-01-27T08:06:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![justone](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@justone](https://discourse.nodered.org/u/justone)\
**Post date:** [27 March 2019 14:25 UTC](https://discourse.nodered.org/t/chart-line-colours/7296/3 "2019-03-27T14:25:50Z")

</div>

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.

---

_[View the full topic](https://discourse.nodered.org/t/chart-line-colours/7296)._
