簡體   English   中英

如果有幾個序列,如何從餅圖中排除序列(Highcharts.js)

[英]How to exclude series from pie-chart if there are a few of them (Highcharts.js)

請幫幫我-隱藏一個特定圖表的一個特定部分該怎么做(我還想讓其余的餅圖充滿動畫騰出的空間)?

這是我有兩個具有不同數據集的餅的代碼: 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%"]
    }]
});

您可以將可見參數用於點(一片) http://api.highcharts.com/highcharts#plotOptions.series.visible

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

{
            color: "red",
            y: 10,
            visible:false,
            name: "a"
        }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM