# JFreeChart Labels on Small Stacked Bars

**URL:** <https://forum.inductiveautomation.com/t/jfreechart-labels-on-small-stacked-bars/43726>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [February 23, 2021, 1:34pm UTC](https://forum.inductiveautomation.com/t/jfreechart-labels-on-small-stacked-bars/43726 "2021-02-23T13:34:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srice](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@srice](https://forum.inductiveautomation.com/u/srice)\
**Post date:** [February 23, 2021, 1:34pm UTC](https://forum.inductiveautomation.com/t/jfreechart-labels-on-small-stacked-bars/43726/1 "2021-02-23T13:34:51Z")

</div>

Hi, I’m trying to format the labels on the JFreeCharts in a report. I’ve managed to format the labels to appear in the center of the bar sections, but the labels are hidden on smaller sections. Is there a function or setting I can configure to force all labels to be visible? My script and a sample image are below:

```auto
from org.jfree.chart.labels import ItemLabelPosition
from org.jfree.chart.labels import ItemLabelAnchor
from org.jfree.ui import TextAnchor
plot = chart.getPlot()
renderer = plot.getRenderer()
renderer.setBasePositiveItemLabelPosition(ItemLabelPosition(ItemLabelAnchor.CENTER, TextAnchor.CENTER))

```

![JFreeChart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/a/0a67b855f64a8ecd5cbe155e1e8b4e50bfcd954c.png)

---

<div class="post-metadata">

**Author:** ![770043297](https://avatars.discourse-cdn.com/v4/letter/7/b9bd4f/32.png) [@770043297](https://forum.inductiveautomation.com/u/770043297)\
**Post date:** [September 20, 2022, 12:25pm UTC](https://forum.inductiveautomation.com/t/jfreechart-labels-on-small-stacked-bars/43726/2 "2022-09-20T12:25:08Z")

</div>

Can you tell me how this is done? Thank you
