Closed mapleleaf99 closed 1 year ago
数据源:
@[
@[@"AAAA", @(0)],
@[@"BBBB", @(0)],
@[@"CCCC", @(0)],
@[@"DDDD", @(0)],
@[@"EEEE", @(10)]
];
试试类似 JS 这样配置看看:
Highcharts.chart('container', {
series: [{
type: 'pie',
dataLabels: {
padding: 0,
style: {
fontSize: '8px'
}
},
data: [{
name: 'AAAAA',
y: 0
},
{
name: 'BBBBB',
y: 0
},
{
name: 'CCCCC',
y: 0
},
{
name: 'DDDDD',
y: 0
},
{
name: 'EEEEE',
y: 10
},]
}]
});
调节了padding和fontsize还是一样
另外log打印出警告提示
这样设置是否有问题
调整了size,可以显示了,谢谢
数据源数据都为0的时候: @[ @[@"AAAA", @(0)], @[@"BBBB", @(0)], @[@"CCCC", @(0)], @[@"DDDD", @(0)], @[@"EEEE", @(0)] ]; ,应该显示五等分吧
报错信息
如题,如图