Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Highcharts 3D Donut Chart

Highcharts 3D Donut Chart

Highcharts 3D ChartHighcharts 3D Chart

The following example demonstrates a 3D pie chart.

We learned the basic Highcharts configuration syntax in the previous chapters. Now let's look at some other configurations.


Configure

chart.options3d Configuration

The following lists the basic configuration for 3D charts. Set the type property of chart to pie, and the options3d option can set the 3D effect.



var chart = {

   type: 'pie',

   options3d: {

         enabled: true,     //显示图表是否设置为3D, 我们将其设置为 true

         alpha: 15,         //图表视图旋转角度

         beta: 15,          //图表视图旋转角度

         depth: 50,         //图表的合计深度,默认为100

         viewDistance: 25   //定义图表的浏览长度

   }

};

plotOptions.pie.innerSize

plotOptions.pie.innerSize specifies how much blank space is reserved at the center of a pie chart when drawing it.

plotOptions.pie.depth

The thickness of the 3D pie chart.



plotOptions: {

   pie: {

      innerSize: 100,

      depth: 45

   }

},

Example

Filename: highcharts_3d_donut.htm









Highcharts 教程 | Runoob Tutorial(runoob.com)





 





The output of the above example is:

Highcharts 3D ChartHighcharts 3D Chart