Home forums Using CanvasJS drawing a solid line Reply To: drawing a solid line




not quite what I want. stripLines goes behind the columns but I need it in front

We are planning to implement feature to render stripLines above data in the next version – will be available in the last week of April.

Also, it does not show up if the value is above the maximum on the Axis.

This looks like a bug in the library. We’ll look into this behaviour in the coming versions. As a workaround you can set maximum property of axis such that it is always higher than the stripLine’s value.

One more alternative is to use a line series (like you already did) with axisX’s minimum & maximum values set. Then you can add two dataPoints to the series such that the lines starts at minimum and ends at maximum of axisX. You can also disable toolTip for this line series by setting toolTipContent property to null.