現(xiàn)在有一個需求要定制成這樣,我對著官網(wǎng)文檔看了好久..還是只能做成這樣現(xiàn)在的問題是,1.中間的那個大總數(shù)文字統(tǒng)計,2.還有l(wèi)abel上的字數(shù)統(tǒng)計,3.label的小圓點怎么能弄出來?下面是我的代碼:app.title = '環(huán)形圖';option = { title: { text: '年齡情況', left: 'center', bottom: 20, textStyle: { color: 'rgb(57,57,56)' }},tooltip: { trigger: 'item', formatter: "{a} <br/>: {c} (nhkv1sx5v02o%)"},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