javascript - Highcharts plotBands do not work with setExtremes function -
i using latest highcharts version (3.0) , have problem using plotbands , setextremes() function.
chart: { renderto: "chart01", defaultseriestype: 'line', zoomtype: 'x', events: { load: function(event) { this.xaxis[0].setextremes(mystartdate, myenddate); this.yaxis[0].setextremes(0,largest); } } }
when using this, highcharts not display defined plotbands. if comment out 2 setextremes functions plotbands displayed (red color spaces).
see following (working) fiddle example: http://jsfiddle.net/j8jkq/
see following (not working) fiddle example: http://jsfiddle.net/j8jkq/1/
whats problem here? did setextremes functions remove plotband infos?
to set extremes advice using min , max axis. that's why exists, see: http://jsfiddle.net/j8jkq/3/
second issue dates date objects, while should timestamps:
mystartdate.gettime(); myenddate.gettime();
and example: http://jsfiddle.net/j8jkq/4/
Comments
Post a Comment