# Staked bar label

**URL:** <https://forum.inductiveautomation.com/t/staked-bar-label/44155>\
**Category:** Ignition\
**Created:** [March 5, 2021, 3:09pm UTC](https://forum.inductiveautomation.com/t/staked-bar-label/44155 "2021-03-05T15:09:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [March 5, 2021, 3:09pm UTC](https://forum.inductiveautomation.com/t/staked-bar-label/44155/1 "2021-03-05T15:09:08Z")

</div>

Hello

in a bar chart, I have two categories, but when i activate ‘Labels?’ the labels do not look good and I want to hide the label of one of the two categories

the following code does it well for me, but after a while the label reappears

```auto
if event.propertyName=='data':
 from java.awt import Color
 plot = event.source.getChart().getPlot()
 renderer = plot.getRenderer()
 renderer.setSeriesItemLabelPaint(1, Color(0,0,0,0))

```

 ![Sin título](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96e64ee995e140caec1b4c3c5d9f27307d1bb68c.jpeg)

thanks you
