# Configuring Vision chart with subplots

**URL:** <https://forum.inductiveautomation.com/t/configuring-vision-chart-with-subplots/56018>\
**Category:** Ignition\
**Created:** [July 28, 2020, 7:53pm UTC](https://forum.inductiveautomation.com/t/configuring-vision-chart-with-subplots/56018 "2020-07-28T19:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rstevenson](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@rstevenson](https://forum.inductiveautomation.com/u/rstevenson)\
**Post date:** [July 28, 2020, 7:53pm UTC](https://forum.inductiveautomation.com/t/configuring-vision-chart-with-subplots/56018/1 "2020-07-28T19:53:30Z")

</div>

If I have 4 separate plots on a single chart, how would you apply these labels to every line in the chart? This code only adds the labels to the top line/plot but the other three remain unchanged.

Thanks!

---

<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:** [July 30, 2020, 4:56pm UTC](https://forum.inductiveautomation.com/t/configuring-vision-chart-with-subplots/56018/2 "2020-07-30T16:56:57Z")

</div>

Something like this (untested):

```python
from org.jfree.chart.labels import StandardXYItemLabelGenerator

# handle charts with single or multiple plots
plots = getattr(chart.plot, "subplots", [chart.plot])
for plot in plots:
	plot.renderer.itemLabelGenerator = StandardXYItemLabelGenerator()
	plot.renderer.baseItemLabelsVisible = True

```

---

<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:** [February 11, 2022, 3:42am UTC](https://forum.inductiveautomation.com/t/configuring-vision-chart-with-subplots/56018/3 "2022-02-11T03:42:28Z")

</div>

Split this topic on February 11, 2022, 3:42am UTC

A post was split to a new topic: [Customizing renderer for points on a Vision chart](https://forum.inductiveautomation.com/t/customizing-renderer-for-points-on-a-vision-chart/56019)
