请帮帮我 - 我该怎么办才能隐藏一个特定图表的某个特定部分(我还希望剩下的馅饼适合腾出空间的动画)?
以下是我有2个不同数据集的代码:http://jsfiddle.net/andreypoznyak/PhjQh/3/
$('#container').highcharts({
chart: {
type: 'pie'
},
title: null,
series: [{
data: [29.9, 71.5, 106.4, 129.2],
center: ["25%", "50%"]
},{
data: [{
color: "red",
y: 10,
name: "a"
}, {
color: "yellow",
y: 20,
name: "b"
}, {
color: "green",
y: 25,
name: "c"
}],
center: ["75%", "50%"]
}]
});
答案 0 :(得分:0)
您可以使用可见参数作为点(一个切片) http://api.highcharts.com/highcharts#plotOptions.series.visible
{
color: "red",
y: 10,
visible:false,
name: "a"
}