验证中...
片段 1 片段 2
gistfile1.txt
原始数据 复制代码
app.title = '订单状态实时环形图';
option = {
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
legend: {
orient: 'vertical',
x: 'left',
data:['并网发电','施工中','申请中','邮件营销','联盟广告','视频广告','百度','谷歌','必应','其他']
},
series: [
{
name:'订单状态',
type:'pie',
selectedMode: 'single',
radius: [0, '30%'],
label: {
normal: {
position: 'inner'
}
},
labelLine: {
normal: {
show: false
}
},
data:[
{value:335, name:'并网发电', selected:true},
{value:679, name:'施工中'},
{value:1548, name:'申请中'}
]
},
{
name:'订单状态',
type:'pie',
radius: ['40%', '55%'],
label: {
normal: {
formatter: '{a|{a}}{abg|}\n{hr|}\n {b|{b}:}{c} {per|{d}%} ',
backgroundColor: '#eee',
borderColor: '#aaa',
borderWidth: 1,
borderRadius: 4,
// shadowBlur:3,
// shadowOffsetX: 2,
// shadowOffsetY: 2,
// shadowColor: '#999',
// padding: [0, 7],
rich: {
a: {
color: '#999',
lineHeight: 22,
align: 'center'
},
// abg: {
// backgroundColor: '#333',
// width: '100%',
// align: 'right',
// height: 22,
// borderRadius: [4, 4, 0, 0]
// },
hr: {
borderColor: '#aaa',
width: '100%',
borderWidth: 0.5,
height: 0
},
b: {
fontSize: 16,
lineHeight: 33
},
per: {
color: '#eee',
backgroundColor: '#334455',
padding: [2, 4],
borderRadius: 2
}
}
}
},
data:[
{value:335, name:'成功并网'},
{value:310, name:'未开始安装'},
{value:234, name:'已完成安装'},
{value:135, name:'完成接入'},
{value:1048, name:'已支付/未勘测/未报建'},
{value:251, name:'已支付/已预约勘测'},
{value:147, name:'已支付/已勘测/未报建'},
{value:102, name:'已支付/已勘测/已报建'}
]
}
]
};
订单状态比例分析圆饼图2.png

评论列表( 0 )

你可以在登录后,发表评论

搜索帮助