現在有一個需求要定制成這樣,我對著官網文檔看了好久..還是只能做成這樣現在的問題是,1.中間的那個大總數文字統計,2.還有label上的字數統計,3.label的小圓點怎么能弄出來?下面是我的代碼:app.title = '環形圖';option = { title: { text: '年齡情況', left: 'center', bottom: 20, textStyle: { color: 'rgb(57,57,56)' }},tooltip: { trigger: 'item', formatter: "{a} <br/>: {c} (mmpf7vs%)"},series: [ { name:'訪問來源', type:'pie', radius: ['50%', '70%'], avoidLabelOverlap: false, label: { normal: { show: true, textStyle: { color: 'rgb(104,104,104)' } }, emphasis: { show: true, textStyle: { fontSize: '30', fontWeight: 'bold' } } }, labelLine: { normal: { show: true, } }, data:[ {value:8, name:'46至55歲'}, {value:13, name:'其他'}, {value:30, name:'56歲及以上'} ] }]};
echart 怎么定制成如圖的樣式?
千萬里不及你
2019-02-26 13:56:47