我也在想办法选项1.在切片之间添加间距选项2.删除当前饼之间的小白色/死区:x1c 0d1x的数据你知道这门课或怎么做吗?我希望它看起来像这样的选项1:的
ql3eal8s1#
您可以通过修改边框选项来创建这样的图表,如下所示:
Highcharts.chart('container', { chart: { type: 'pie' }, title: { text: '' }, plotOptions: { pie: { innerSize: '50%', borderWidth: 10, borderRadius: 10, borderColor: 'white', dataLabels: { enabled: false } } }, series: [{ data: [ ['Slice 1', 2], ['Slice 2', 4], ] }] });
字符串
演示:https://jsfiddle.net/BlackLabel/kfj1gecv/2/API引用:https://api.highcharts.com/highcharts/series.pie.borderWidthhttps://api.highcharts.com/highcharts/series.pie.borderRadius
1条答案
按热度按时间ql3eal8s1#
您可以通过修改边框选项来创建这样的图表,如下所示:
字符串
演示:https://jsfiddle.net/BlackLabel/kfj1gecv/2/
API引用:https://api.highcharts.com/highcharts/series.pie.borderWidthhttps://api.highcharts.com/highcharts/series.pie.borderRadius