# Changing colour of bars in bar charts

**URL:** <https://discourse.nodered.org/t/changing-colour-of-bars-in-bar-charts/93371>\
**Category:** Dashboard\
**Created:** [22 November 2024 21:03 UTC](https://discourse.nodered.org/t/changing-colour-of-bars-in-bar-charts/93371 "2024-11-22T21:03:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [23 November 2024 08:09 UTC](https://discourse.nodered.org/t/changing-colour-of-bars-in-bar-charts/93371/2 "2024-11-23T08:09:22Z")

</div>

Yes it is possible, you would need to create two lots of the data,  
eg  
0,0,3,0  
2,4,0,2  
OG data 2,4,3,2  
And then stack the bar chart  
Not knowing what dashboard you are using

> **[Chart ui-chart | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-chart.html#bar-charts)**
>
> Visualize your data beautifully with ui-chart in Node-RED Dashboard 2.0 for insightful analytics.

> [@Color one value in Node-Red Dashboard differently](https://discourse.nodered.org/t/color-one-value-in-node-red-dashboard-differently/83831/3):
>
> Not really a quick way, or even that clean, you could stack the bar chart, and use Javascript or Jsonata to create the look, but will not be perfect. e.g. [{"id":"fa5f6d3530e9471c","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"ui\_control","v":"{\"options\":{\"scales\":{\"xAxes\":[{\"stacked\":true}],\"yAxes\":[{\"stacked\":false}]}}}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","…

---

_[View the full topic](https://discourse.nodered.org/t/changing-colour-of-bars-in-bar-charts/93371)._
