我知道在饼图中嵌套是可能的,但是是否可以构建一个类似的圆环图,如图所示?特别是外部圆环上切片之间差距,
41zrol4v1#
您可以将所有数据点标记为sliced,设置innerSize和borderColor。例如:
sliced
innerSize
borderColor
series: [{ type: 'pie', innerSize: '30%', borderWidth: 1, borderColor: 'rgba(0,0,0,0.5)', data: [{ y: 23934, sliced: true }, { y: 22503, sliced: true }, ...] }]
现场演示:http://jsfiddle.net/BlackLabel/zpr4hygu/API引用:https://api.highcharts.com/highcharts/series.pie
旋转数据标签螺纹:Rotating dataLabels in a Highcharts pie chart
1条答案
按热度按时间41zrol4v1#
您可以将所有数据点标记为
sliced
,设置innerSize
和borderColor
。例如:现场演示:http://jsfiddle.net/BlackLabel/zpr4hygu/
API引用:https://api.highcharts.com/highcharts/series.pie
旋转数据标签螺纹:Rotating dataLabels in a Highcharts pie chart