Vertical span bands with jqplot

112 Views Asked by At

I'd like to add vertical span areas on a jqplot by defining for each one the x axis range. Is there an easy and straightforward way to do this ?

I tried setting an overlay with x value set as the centre of the vertical area I want to cover and the linewidth set as the whole x range for the vertical band. The issue is that the linewidth value is encoded in pixel and not in units of xAxis.

Any help will be greatly appreciated.

1

There are 1 best solutions below

2
On

Please see canvasOverlay on jqplot documentation here and some examples here

You must be able - thanks to them - to display what you need