# Change colour of item in Chart

**URL:** <https://forum.inductiveautomation.com/t/change-colour-of-item-in-chart/35729>\
**Category:** Ignition\
**Created:** [June 16, 2020, 10:38pm UTC](https://forum.inductiveautomation.com/t/change-colour-of-item-in-chart/35729 "2020-06-16T22:38:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 17, 2020, 4:08pm UTC](https://forum.inductiveautomation.com/t/change-colour-of-item-in-chart/35729/9 "2020-06-17T16:08:15Z")

</div>

Honestly, you’re pretty close.

Use code similar to what @jpark posted and add a column to your dataset to use as a flag. When you need to refresh the item which is being modified just set the proper flag in the dataset and your custom renderer will just take care of the rest.

All you need do is have the script check the flag column for each data point.

Note: This will allow multiple points to be formatted so if you only want 1 point to be changed you will need to insure that what ever method modifies the dataset does so correctly.

---

_[View the full topic](https://forum.inductiveautomation.com/t/change-colour-of-item-in-chart/35729)._
