# Apex Chart color the datalabels based on value

**URL:** <https://forum.inductiveautomation.com/t/apex-chart-color-the-datalabels-based-on-value/60792>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 15, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/apex-chart-color-the-datalabels-based-on-value/60792 "2022-06-15T12:49:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berkay\_Sahin](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@Berkay\_Sahin](https://forum.inductiveautomation.com/u/Berkay_Sahin)\
**Post date:** [June 15, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/apex-chart-color-the-datalabels-based-on-value/60792/1 "2022-06-15T12:49:12Z")

</div>

Hello,

How can I simply change the color of each data labels in Apex Chart based on value? I am looking for something like mentioned here [change color of single dataLabel in ApexCharts - Stack Overflow](https://stackoverflow.com/questions/71364214/change-color-of-single-datalabel-in-apexcharts;)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/4/244c514b046818b0a05a2d99fa07cca65bfc54cd.png)

Below I played around with the datalabels in options, however it is only possible to change the color of whole line not one.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/0/30fd1506f2696079dd9dab4477c440567c37bf97.png)

---

<div class="post-metadata">

**Author:** ![twittyfarms](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@twittyfarms](https://forum.inductiveautomation.com/u/twittyfarms)\
**Post date:** [August 18, 2023, 11:38pm UTC](https://forum.inductiveautomation.com/t/apex-chart-color-the-datalabels-based-on-value/60792/2 "2023-08-18T23:38:26Z")

</div>

you might check the docs for custom function; this will be a javascript function that you pass directly in the value
