# Report chart hides bar value labels when update BarRenderer

**URL:** <https://forum.inductiveautomation.com/t/report-chart-hides-bar-value-labels-when-update-barrenderer/64682>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting, python, ignition80\
**Created:** [September 29, 2022, 6:54pm UTC](https://forum.inductiveautomation.com/t/report-chart-hides-bar-value-labels-when-update-barrenderer/64682 "2022-09-29T18:54:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 30, 2022, 3:20am UTC](https://forum.inductiveautomation.com/t/report-chart-hides-bar-value-labels-when-update-barrenderer/64682/2 "2022-09-30T03:20:50Z")

</div>

This is doable, but you have to set the label generator to your custom renderer and then set its visibility to true. You will get the result you are looking for if you change your commented code to look like this:

```auto
	class CustomRenderer(BarRenderer):
		def getItemPaint(self, row, column):
			cntValue = chart.getCategoryPlot().getDataset().getValue(row, column)
			inRange = cntValue > mTarget-chartValueLimiter and cntValue < mTarget+chartValueLimiter
			return Color.green if inRange else Color.red
	chart.getCategoryPlot().setRenderer(CustomRenderer())
	modifiedRenderer = chart.getCategoryPlot().getRenderer()
	modifiedRenderer.setBaseItemLabelGenerator(labelGenerator)
	modifiedRenderer.setBaseItemLabelsVisible(True)

```

This code gets the modified renderer after it has been set, and subsequently applies the desired labels using the label generator that you already have in place in line 21 of your code.

---

_[View the full topic](https://forum.inductiveautomation.com/t/report-chart-hides-bar-value-labels-when-update-barrenderer/64682)._
