# Bar labels on a chart in report

**URL:** <https://forum.inductiveautomation.com/t/bar-labels-on-a-chart-in-report/15283>\
**Category:** Ignition\
**Created:** [September 8, 2017, 4:38pm UTC](https://forum.inductiveautomation.com/t/bar-labels-on-a-chart-in-report/15283 "2017-09-08T16:38:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wg1](https://avatars.discourse-cdn.com/v4/letter/w/96bed5/32.png) [@wg1](https://forum.inductiveautomation.com/u/wg1)\
**Post date:** [September 8, 2017, 4:38pm UTC](https://forum.inductiveautomation.com/t/bar-labels-on-a-chart-in-report/15283/1 "2017-09-08T16:38:09Z")

</div>

Hello,  
i have a bar chart in which scripting has been enabled to change the bar color based on the value (barRenderer). Does anyone know how to make the bar label visible through the script?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 8, 2017, 6:34pm UTC](https://forum.inductiveautomation.com/t/bar-labels-on-a-chart-in-report/15283/2 "2017-09-08T18:34:19Z")

</div>

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/97a47956b02a28c8ab74f307c93b164be435f056.png)

```auto
from org.jfree.chart.labels import StandardCategoryItemLabelGenerator

renderer = chart.getPlot().getRenderer()

renderer.setBaseItemLabelGenerator(StandardCategoryItemLabelGenerator())
renderer.setBaseItemLabelsVisible(True)

```

---

<div class="post-metadata">

**Author:** ![wg1](https://avatars.discourse-cdn.com/v4/letter/w/96bed5/32.png) [@wg1](https://forum.inductiveautomation.com/u/wg1)\
**Post date:** [September 8, 2017, 7:36pm UTC](https://forum.inductiveautomation.com/t/bar-labels-on-a-chart-in-report/15283/3 "2017-09-08T19:36:57Z")

</div>

worked like a charm! Thank you!
