View Full Version : How to add a constant line in a chart

6 Oct 2009, 8:13 AM
Hello All,
I have a column chart that works perfectly. I would like to add a constant threshold line (parallel to the x-axis) having a fixed y-value. I've searched the forums, but couldn't find a useful answer. Thanks in advance.

6 Oct 2009, 12:18 PM
I just add another series that points to a field in the store with a constant value in every record...

Or... you could add the value you want to only the first and last record in the store and set these in the series style.

When true, a dashed line is drawn between points appearing before and after bad data (generally null or NaN values). Available only on a series of type "line".
A numeric value that represents the length of dashes on a discontinous line, in pixels. Available only on a series of type "line".

(I've never used them myself - thats just an idea)

P.S... and you will need to put... type: 'line', in the series so that the chart knows it is a line series and not a column like the other series' in the chart

9 Oct 2009, 6:40 AM
Thank you all, for the valuable feedback.