var scale = 1; var echartData = [{ value: 2000, name: 'vuej' }, { value: 2800, name: 'css' }, { value: 3500, name: 'nodejs' }, { value: 1500, name: 'dedecms' }, { value: 2560, name: 'rectjs' }, { value: 1770, name: 'php' }] option = { legend: { orient : 'vertical', x : 'left', data:['php','rectjs','vuej','css','nodejs','dedecms'] }, tooltip : { trigger: 'item', formatter: "{a} <br/>{b} : {c} ({d}%)" }, title: { text:'流量总数', left:'center', top:'45%', textStyle:{ color:'#031f2d', fontSize:20*scale, align:'center' } }, series: [{ name: '流量总数', type: 'pie', radius : ['50%', '70%'], hoverAnimation: true, itemStyle : { normal : { label : { show : false }, labelLine : { show : false } }, }, data: echartData }] };