当饼图较小,数据比较多的时候,有些占比较小的数据指针没有展示,被隐藏了
配置项如下
option = {
title: {
text: 'Awesome Chart',
},
legend: {
type: 'scroll',
orient: 'vertical',
left: 10,
top: 10,
bottom: 20,
},
series: [
{
type: 'pie',
radius: '50%',
avoidLabelOverlap: false,
data: [
{
value: 225,
name: '10',
},
{
value: 3,
name: '10.3.3',
},
{
value: 83,
name: '11',
},
{
value: 4,
name: '11.3.0',
},
{
value: 2,
name: '12.0.0',
},
{
value: 2,
name: '12.0.1',
},
{
value: 1,
name: '12.3.1',
},
{
value: 1,
name: '12.4.1',
},
{
value: 1,
name: '13.1.2',
},
{
value: 1,
name: '13.3.1',
},
{
value: 8,
name: '13.6.0',
},
{
value: 5,
name: '13.6.1',
},
{
value: 3,
name: '13.7.0',
},
{
value: 2,
name: '14.0.0',
},
{
value: 4,
name: '14.0.1',
},
{
value: 13,
name: '14.1.0',
},
{
value: 2,
name: '14.2.0',
},
{
value: 1,
name: '14.2.1',
},
{
value: 20,
name: '14.3.0',
},
{
value: 16,
name: '14.4.0',
},
{
value: 3,
name: '14.4.1',
},
{
value: 13,
name: '14.4.2',
},
{
value: 5,
name: '14.5.0',
},
{
value: 17,
name: '14.5.1',
},
{
value: 24,
name: '14.6.0',
},
{
value: 9,
name: '14.7.0',
},
{
value: 106,
name: '14.7.1',
},
{
value: 3,
name: '15.0.0',
},
{
value: 1,
name: '7.1.1',
},
{
value: 1,
name: '8.0.0',
},
{
value: 2,
name: '8.1.0',
},
{
value: 11,
name: '9',
},
{
value: 1,
name: '9.0.2',
},
{
value: 1,
name: '9.0.3',
},
{
value: 1,
name: '9.0.4',
},
{
value: 1,
name: '9.0.5',
},
{
value: 1,
name: '9.0.6',
},
{
value: 1,
name: '9.0.7',
},
{
value: 1,
name: '9.0.7',
},
{
value: 1,
name: '9.0.9',
},
{
value: 1,
name: '9.0.10',
},
{
value: 1,
name: '9.0.11',
},
{
value: 1,
name: '9.0.12',
},
{
value: 1,
name: '9.0.13',
},
{
value: 1,
name: '9.0.14',
},
{
value: 1,
name: '9.0.15',
},
{
value: 1,
name: '9.0.16',
},
{
value: 1,
name: '9.0.17',
},
{
value: 1,
name: '9.0.18',
},
{
value: 1,
name: '9.0.19',
},
{
value: 1,
name: '9.0.20',
},
{
value: 1,
name: '9.0.21',
},
{
value: 1,
name: '9.0.22',
},
],
},
],
};