我正在使用 highcharts 创建嵌套的 donut chart 。
我看到了以下链接:
can we make nested donut charts in highcharts?
有没有办法可以在每个 donut 周围添加一些空间/边距。
最佳答案
按照链接的示例,您可以执行以下操作:
series: [{
type: 'pie',
name: 'Election',
size: '60%', // Change this parameter
innerSize: '50%', // Change this parameter
data: [
{name: "A", y: 20},
{name: "B", y: 10},
{name: "C", y: 15}
]
}, {
type: 'pie',
name: 'Proprietary or Undetectable',
innerSize: '80%', // Change this parameter
data: [
{name: "A", y: 10},
{name: "B", y: 15},
{name: "C", y: 20}
]
}]
Fiddle
关于highcharts - 带边距的嵌套圆环图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57085247/