jquery - Highcharts - Drilldown with setSize causes chart corruption -


i need able resize chart when drill down through data, because instance, top level might have say, series of 3, drilldown might series of 10 or vice versa. however, having issue this.

using fiddle able reproduce bug: http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-drilldown/

  type: 'bar',   events: {             drilldown: function(e) {            this.setsize( this.chartwidth, ( e.seriesoptions.data.length * 50 ) + 150 );              },             drillup: function(e) {            this.setsize( this.chartwidth, ( e.seriesoptions.data.length * 50 ) + 150 );         }      }                    }, 

notice: if drill down internet explorer, bottom "proprietary or undetectable", left on top level "brands" chart.

if remove the this.setsize stuff, chart work correctly.

here chart above changes.

http://jsfiddle.net/7oatr7xe/

image of issue: http://i.imgur.com/rrjvlri.png

no idea if bug, seems can solve if call setsize timeout (even 1ms seems work)

        drilldown: function(e) {             settimeout(function () {                     this.setsize( this.chartwidth, ( e.seriesoptions.data.length * 50 ) + 150 );             }, 1);         } 

http://jsfiddle.net/7oatr7xe/1/


Popular posts from this blog