var option = {
tooltip: {
trigger: 'item'
},
legend: {
orient: 'vertical',
left: 'left',
show: false
},
series: [
{
name: '访问来源',
type: 'pie',
radius: '50%',
startAngle: 270,
label: {
position: 'inside',
formatter: '{d}%'
},
labelLine: {show: false},
data: [
{value: 194.94, name: '小单', itemStyle: {color: '#ff3f40'}},
{value: 301.87, name: '中单', itemStyle: {color: '#cd2525'}},
{value: 132.73, name: '大单', itemStyle: {color: '#b41112'}},
{value: 30, name: '大单A', itemStyle: {color: '#07963c'}},
{value: 399.23, name: '中单A', itemStyle: {color: '#07963c'}},
{value: 94.22, name: '小单A', itemStyle: {color: '#07963c'}}
],
itemStyle: {
shadowBlur: 5,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
},
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
lockdatav Done!