# Report TimeSeries constant lines as min/max

**URL:** <https://forum.inductiveautomation.com/t/report-timeseries-constant-lines-as-min-max/16704>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [January 23, 2018, 7:27pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-constant-lines-as-min-max/16704 "2018-01-23T19:27:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/fredz/32/4004_2.png) [@Fredz](https://forum.inductiveautomation.com/u/Fredz)\
**Post date:** [January 23, 2018, 7:27pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-constant-lines-as-min-max/16704/1 "2018-01-23T19:27:49Z")

</div>

I am trying to plot constant line in Timeseries chart on a report.

Below is the Script code I am using for Trend’s script and ValueMarker is 142.5.  
How can I pass the MarkerValue from report parameters?

def configureChart(chart):

```
from org.jfree.ui import Layer
from org.jfree.ui import RectangleAnchor
from org.jfree.ui import TextAnchor
from org.jfree.chart.plot import ValueMarker
from java.awt import BasicStroke, Color
stroke = BasicStroke(2.0)
color = Color(255,0,0)
plot = chart.getPlot()
targetValue = ValueMarker(142.5);   
targetValue.setLabelAnchor(RectangleAnchor.LEFT)
targetValue.setLabelTextAnchor(TextAnchor.CENTER_LEFT)
targetValue.setLabel("Target")
targetValue.setStroke(stroke)
targetValue.setPaint(color)
plot.addRangeMarker(targetValue, Layer.BACKGROUND)

```

Thanks!  
Fred Zaboli

---

<div class="post-metadata">

**Author:** ![Lavern\_Ronoh](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lavern_ronoh/32/48271_2.png) [@Lavern\_Ronoh](https://forum.inductiveautomation.com/u/Lavern_Ronoh)\
**Post date:** [June 14, 2023, 7:15pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-constant-lines-as-min-max/16704/2 "2023-06-14T19:15:18Z")

</div>

Hello Fredz,  
Were you able to find a solution to this issue?

---

<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:** [June 14, 2023, 9:04pm UTC](https://forum.inductiveautomation.com/t/report-timeseries-constant-lines-as-min-max/16704/3 "2023-06-14T21:04:57Z")

</div>

As of...a while ago, somewhere in 8.0.x, I think, the `configureChart` extension functions in reporting are provided the same `data` object (with all parameters and data sources in the report) available in scripted data sources. This would allow you to directly refer to a parameter's value and use it as a marker value using the script example here.
