var graphic =[{type:'text',left:'center',top:'center',style:{text:getPieText(pieData, currentIndex),textAlign:'center',fill:'#000',fontSize:18,fontWeight:'bold',}}];
获取文字,全称太长取前两个字(关注黑龙江!!)
functiongetPieText(data, index){var name = data[index].name.substring(0,2);if(data[index].name =='黑龙江省'){
name = data[index].name.substring(0,3);}return name +((data[index].value /getTotalValue(data)*100).toFixed(2))+'%';}functiongetTotalValue(data){return data.reduce((total, current)=>{return total + current.value;},0);}
参考文献:
[Nuss80] Nussbaumer H. Fast polynomial transform methods for multidimensional DFTs[C]//ICASSP’80. IEEE International Conference on Acoustics, Speech, and Signal Processing. IEEE, 1980, 5: 235-237.[SV11] Smart N P, Vercauteren F. Full…
在学习NL2SQL之前先要进行三W提问:
即what 是什么 ; why 为什么使用; how 如何使用
NL2SQL是什么?
NL2SQL(NLP Natural Language To SQL)是自然语言处理的新兴研究热点,顾名思义࿰…