I create a pie chart with two series. Here is my situation:
when click the left pie slice, right pie will fill with new data.
first time I click one slice on the left, the clicked one silce out perfectly.
but after that click, I click another slice, the one which sliced out before will not slice in as I want.
demo here: http://jsfiddle.net/jdGG7/
$(function () {
$('#container').highcharts({
chart: {
type: 'pie'
},
series: [
{
allowPointSelect: true,
size: 100,
center: [100, 100],
events: {
click: function(e) {
var chart = window.chart;
var data = [
['Firefox', 44.2],
['IE7', 26.6],
['IE6', 20],
['Chrome', 3.1],
['Other', 5.4]
];
var series = this.chart.series;
series[1].setData(data);
e.point.slice();
}
},
data: [
['Firefox', 44.2],
['IE7', 26.6],
['IE6', 20],
['Chrome', 3.1],
['Other', 5.4]
]
} ,
{
size: 100,
center: [300, 100],
data: [["hehe", 10], ['IE7', 26.6]]
}
]
});
});
if any one know how to do like this demo http://www.highcharts.com/demo/pie-basic with my situation. tell me please.
