Highcharts donut chart without inner pie?

前端 未结 3 2067
悲&欢浪女
悲&欢浪女 2020-12-23 14:32

I\'ve been searching for the solution to generate the simplest donut chart with Highcharts library. However, all examples of Highcharts show the style of chart with both inn

3条回答
  •  天涯浪人
    2020-12-23 14:58

    You just need to provide the data as an array of two element (key / value) arrays. Specify an innerSize to get the donut style.

    So your parameters will contain something like this:

    ...
    data: [["Firefox",6],["MSIE",4],["Chrome",7]],
    innerSize: '20%',
    ...
    

    Here's a jsFiddle of a complete example.

提交回复
热议问题