echarts饼图字体大小修改

const option = {
tooltip: {
trigger: 'item',
formatter: "{a}
{b}: {c} ({d}%)"
},
series: [
{
name:'访问来源',
type:'pie',
selectedMode: 'single',
radius: [0, '45%'],
center: ['50%', '49%'],
label: {
normal: {
position: 'inner',
textStyle : {
fontWeight : 'normal',
fontSize : px(18)
}
}
},
labelLine: {
normal: {
show: false
}
},
data: data.inner,
},
{
name:'访问来源',
type:'pie',
radius: ['60%', '80%'],
center: ['50%', '49%'],
label: {
normal: {
backgroundColor: '#eee',
borderColor: '#aaa',
rich: {
a: {
color: '#999',
lineHeight: 22,
align: 'center'
},
hr: {
borderColor: '#aaa',
width: '100%',
borderWidth: 1,
height: 0
},
b: {
fontSize: px(32),
lineHeight: px(66),
},
per: {
color: '#eee',
backgroundColor: '#334455',
padding: [px(4), px(8)],
borderRadius: px(4)
}
}
}
},
data: data.out,
}
]
};

posted @ 2017-10-13 11:54  FE-神鸟  阅读(9784)  评论(0编辑  收藏  举报