Highstock- limit grid lines for y axis -
how can show grid lines on middle of chart, please see attached image
you can loop on ticks , remove gridlines not @ first / last , 0 point.
$.each(chart.yaxis[0].ticks,function(i,line){ if(!line.isfirst && !line.islast && line.pos!=0) { line.gridline.destroy(); } });
example: http://jsfiddle.net/hjpchasj/2/
Comments
Post a Comment