0

请帮帮我 - 我应该怎么做才能隐藏一个特定图表的一个特定部分(另外我希望馅饼的其余部分适合动画的空出空间)?

这是我有 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%"]
    }]
});
4

1 回答 1

0

您可以将可见参数用于点(一片) http://api.highcharts.com/highcharts#plotOptions.series.visible

http://jsfiddle.net/PhjQh/4/

{
            color: "red",
            y: 10,
            visible:false,
            name: "a"
        }
于 2013-05-20T10:06:06.137 回答