Highcharts提供了一个属性“innerSize”来配置饼图内径的大小。示例:http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/pie-innersize-80px/
plotOptions: {
pie: {
innerSize: 80
}
},
我尝试通过在level数组中设置size属性来配置Sunburst图表中最顶层的大小:1。JS小提琴:http://jsfiddle.net/amrutaJgtp/tk4kprhc/4/
levels: [{
level:1,
size:500
},{
level: 2,
colorByPoint: true,
dataLabels: {
rotationMode: 'parallel'
}
}, {
level: 3,
colorVariation: {
key: 'brightness',
to: -0.5
}
}, {
level: 4,
colorVariation: {
key: 'brightness',
to: 0.5
}
}]
我在API参考中检查过Highcharts不提供级别的大小属性。但是,我想仅配置1级的大小,以便改变旭日形图中最内圈的大小。有没有办法实现这个目标?
答案 0 :(得分:0)
令人惊讶的是这段代码有效:
plotOptions: {
sunburst: {
innerSize: 100
}
}
虽然没有记录。