问题描述
我一直在寻找解决方案,用Highcharts库生成最简单的圆环图。然而,所有Highcharts的例子都显示了内部派和外部甜甜圈的图表风格(参见:)
我怎样才能摆脱内在的馅饼,并保持外面的甜甜圈,就像其他图书馆一样? (类似于RGraph:。
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 inner pie and outer donut (refer to: http://www.highcharts.com/demo/pie-donut)
How can I get rid of the inner pie and just keep the outer donut, just like other libraries do? (something like RGraph: http://www.rgraph.net/examples/donut.html)
Thank you.
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.
这篇关于Highcharts甜甜圈图表没有内在派?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!