Monday 15 August 2011

javascript - highstocks hozontal line won't draw -



javascript - highstocks hozontal line won't draw -

so i'm trying highcharts plot draw recent minima , maxima.

i figured right json sub-object "plotlines", script refuses draw them without error. maybe of can spot error. corresponding (and wrong, doesn't matter example) values listed left

thanks!

with current values, lines never plot.

your axis min sitting @ 500, , plotting lines @ 498. axis not expand show plotlines or plotbands - expand show info (or based on minpadding/maxpadding, etc).

you need check lines within axis min/max in order display them.

you can using getextremes() method, , if needed, setextremes() method:

http://api.highcharts.com/highcharts#axis.getextremes

http://api.highcharts.com/highcharts#axis.setextremes

edit incorporate comments:

if line same value grid line, need set zindex on either plotline or gridlines - default gridlines above plotlines

javascript highcharts

No comments:

Post a Comment