Highcharts Marimekko chart refresh

前端 未结 1 1738
误落风尘
误落风尘 2021-01-28 08:51

The script below builds a basic Marimekko chart where the x-values are cumulative. This is awesome as an exciting way to plot data. http://jsfiddle.net/Guill84/1o926coh/

相关标签:
1条回答
  • 2021-01-28 09:14

    Thank you again Pawel, that is indeed the answer to the question.

    A possible solution looks a bit like this:

    legendItemClick: function () {
                        var pos = this.index;
                        var sname = this.name;
                        var chart = $('#container').highcharts();
                        while(chart.series.length > 0)
                        chart.series[0].remove(true);
                        rawData[pos]= { name: sname, x: 0, y: 0 };        
                        ... then update the series with the new array  
                                  }     
    
    0 讨论(0)
提交回复
热议问题