# Setting up bound value on chart

**URL:** <https://forum.inductiveautomation.com/t/setting-up-bound-value-on-chart/17372>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [March 15, 2018, 7:06am UTC](https://forum.inductiveautomation.com/t/setting-up-bound-value-on-chart/17372 "2018-03-15T07:06:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 16, 2018, 6:42am UTC](https://forum.inductiveautomation.com/t/setting-up-bound-value-on-chart/17372/6 "2018-03-16T06:42:46Z")

</div>

You can also add range markers. This example is from the `configureChart` extension method.

```auto
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 to fit your example with colors and location of markers 🙂

---

_[View the full topic](https://forum.inductiveautomation.com/t/setting-up-bound-value-on-chart/17372)._
