如何在深入分析中应用PlotOptions

时间:2015-09-03 09:26:49

标签: highcharts

您能告诉我如何将plotOptions应用到highcharts中吗?我试过传递

 plotOptions: {
    column: {
        groupPadding: 0,
        pointPadding: 0,
        borderWidth: 1
    }
},
drilldown: {之后

但它没有工作

     drilldown: {
      plotOptions: {
       column: {
        groupPadding: 0,
        pointPadding: 0,
        borderWidth: 1
    }
},
            series: [{
               //  type: 'pie',
                id: 'animals',
                data: [
                    ['Cats', 4],
                    ['Dogs', 2],
                    ['Cows', 1],
                    ['Sheep', 2],
                    ['Pigs', 1]
                ]
            }, {
                id: 'fruits',
                data: [
                    ['Apples', 4],
                    ['Oranges', 2]
                ]
            }]
        }

1 个答案:

答案 0 :(得分:0)

您可以在系列对象中应用这些选项。

drilldown: {
            series: [{
                groupPadding: 0,
                pointPadding: 0,
                borderWidth: 1,
                name: "Microsoft Internet Explorer",
                id: "Microsoft Internet Explorer",
                data: [
                    [
                        "v11.0",
                        24.13
                    ],
                    [
                        "v8.0",
                        17.2
                    ]
                ]
            }]
}

示例:http://jsfiddle.net/hxua2Lpk/