Highcharts HighCarts饼图在饼图标签中未显示值
如果Highcharts.series.data数组中有非偶数元素列表,则HighCarts饼图不显示1值标签 像 或 比如说Highcharts HighCarts饼图在饼图标签中未显示值,highcharts,Highcharts,如果Highcharts.series.data数组中有非偶数元素列表,则HighCarts饼图不显示1值标签 像 或 比如说 也许有人知道我对配置的错误是什么?在绘图选项中,将大小从109%更改为100% plotOptions: { pie: { dataLabels: { allowOverlap:true, enabled: true, distance: -20, color:
也许有人知道我对配置的错误是什么?在绘图选项中,将大小从109%更改为100%
plotOptions: {
pie: {
dataLabels: {
allowOverlap:true,
enabled: true,
distance: -20,
color: '#fff',
style: {
fontWeight: 'bold',
fontSize: '16px',
textOutline: 'none'
}
},
borderWidth: '7px',
borderColor: '#fff',
size: '100%',
startAngle: -90,
endAngle: 360,
center: ['50%', '50%']
},
哦。。。谢谢!尝试了这么多的事情,忘记了恢复这个选项。有趣的是,当设置108%或110%时效果很好。。。非常感谢。
data: [
["1", 14.2],
["2", 14.2],
["3", 14.2],
["4", 14.2],
["5", 14.2]
]
plotOptions: {
pie: {
dataLabels: {
allowOverlap:true,
enabled: true,
distance: -20,
color: '#fff',
style: {
fontWeight: 'bold',
fontSize: '16px',
textOutline: 'none'
}
},
borderWidth: '7px',
borderColor: '#fff',
size: '100%',
startAngle: -90,
endAngle: 360,
center: ['50%', '50%']
},