# How to add a target line to an Ignition 7.9 Bar Graph

**URL:** <https://forum.inductiveautomation.com/t/how-to-add-a-target-line-to-an-ignition-7-9-bar-graph/93860>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 29, 2024, 6:45pm UTC](https://forum.inductiveautomation.com/t/how-to-add-a-target-line-to-an-ignition-7-9-bar-graph/93860 "2024-07-29T18:45:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob\_Lawler](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Jacob\_Lawler](https://forum.inductiveautomation.com/u/Jacob_Lawler)\
**Post date:** [July 29, 2024, 6:45pm UTC](https://forum.inductiveautomation.com/t/how-to-add-a-target-line-to-an-ignition-7-9-bar-graph/93860/1 "2024-07-29T18:45:33Z")

</div>

Hello,

We are trying to set up several reports using ignition data. One of the requests was to add a target line to this graph, at the 120 position, and running across the graph. I've looked online, and I can't find documentation for the JFreeChart that shows how to accomplish this. If you have any advice or guidance, please let me know!

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af8d6fac4964ee895cc153de35078a2ac3666fcb.png)

---

<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 29, 2024, 6:55pm UTC](https://forum.inductiveautomation.com/t/how-to-add-a-target-line-to-an-ignition-7-9-bar-graph/93860/2 "2024-07-29T18:55:13Z")

</div>

Yes; the term to search for on the forums is `ValueMarker`. See this post for one example:

> [@Setting up bound value on chart](https://forum.inductiveautomation.com/t/setting-up-bound-value-on-chart/17372/6):
>
> You can also add range markers. This example is from the configureChart extension method. def configureChart(self, chart): from org.jfree.chart.plot import ValueMarker from java.awt import Color, BasicStroke plot = chart.getPlot() stroke = BasicStroke(1.0) # Draws a horizontal red line through 12.4 plot.addRangeMarker(ValueMarker(12.4, Color.RED, stroke)) # Draws a horizontal blue line through 12.225 plot.addRangeMarker(ValueMarker(12.225, Color.BLUE, stroke)) EDIT: Changed t…

---

<div class="post-metadata">

**Author:** ![Jacob\_Lawler](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Jacob\_Lawler](https://forum.inductiveautomation.com/u/Jacob_Lawler)\
**Post date:** [July 30, 2024, 4:09pm UTC](https://forum.inductiveautomation.com/t/how-to-add-a-target-line-to-an-ignition-7-9-bar-graph/93860/3 "2024-07-30T16:09:58Z")

</div>

Thank you! that source allowed me to do the trick!
