var num =70;var color =newecharts.graphic.LinearGradient(0,1,0,0,[{offset:0,color:'rgb(255,46,46)'// 0% 处的颜色},{offset:1,color:'rgb(255,100,46)'// 100% 处的颜色}]);let n = num;let progress =(n *0.01).toFixed(2);
option ={title:[{text:'话题占比',x:'center',top:'65%',textStyle:{color:'#999999',fontSize:44,fontWeight:'100'}}],series:[{type:'gauge',axisLine:{lineStyle:{width:30,color:[[progress, color],[1,'rgba(0, 97, 226, 0.25)']]}},pointer:{show:false},axisTick:{show:false},splitLine:{show:false},axisLabel:{show:false},detail:{fontSize:70,offsetCenter:[0,'0%'],valueAnimation:true,formatter:'{value} %',color:'auto'},data:[{value: num
}]}]};