function(){ var points = this.points; var value = "<b><font size=2.5 color='Black' white-space:nowrap float:left>"; for(var i = 0;i < points.length;i++) { if(points[i].series.visible){ if (points[i].seriesName==="无用" || (points[i].seriesName==="总装机容量" && points[i].value === '0')) {continue;} value +="<font color='Black'></font>"+points[i].seriesName+':'+points[i].value+""+(points[i].seriesName==="总装机容量"?"兆瓦":""); } } return value+"</font></b>"; }; //这个是js 具体的效果就是这样,兆瓦一直换行,怎么不换行呢 |