Pie chart with different fill percentage

a 夏天 提交于 2019-12-05 21:19:41

Unfortunately, Highcharts, Google Chart Tools, wijmo and RGraph do not support individual diameters for each slice. Let me know if somebody knows about an API with that capability.

EDIT: But if you are already familiar with GD and have created a basic pie, you probably just have to change the $width parameter for each slice in method imagefilledarc.

Like you I search something like that.

I am using http://www.highcharts.com/demo/pie-donut and I divide the outside parts in 2, the "filled value" and the "non filled value".

There is option in google charts for this. You have option to explode slices separately like this:

slices: {  
     1: {offset: 0.2},
     3: {offset: 0.3}                  
  }

and if you put offset to negative values it will look like this: pie chart

code for this looks something like:

slices: {  
 1: {offset: -0.3}                  

}

If you have exp in jquery, then i suggest you to go for Highcharts a jquery based charts.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!