3

I have requirement where in need to switch between different charts using options from drop down or radio button. The chart i click must overwrite previous chart and show different chart with same data.

I have simulated similar kind of code but finding it difficult to overwrite with previous. Here is the jsfiddle reference in my comments:

Any help appreciated.

Thanks, Sohan

4

1 回答 1

5

您还可以使用 update() 函数,它允许更新系列的类型,因此数据将相同,但行可以替换为列或其他类型。

http://api.highcharts.com/highcharts#Series.update()

编辑:

$.each(chart.series,function(i,serie){
                serie.update({
                    type:'column'
                });
            });

几个系列:http: //jsfiddle.net/GGvmM

于 2013-07-09T11:42:01.750 回答