background image
{total
+=
'<div
align=center
style="margin-top:100px;"><span
style="font-size:25px;color:'+FR.contentFormat(points[1].value,
'')+'">'+
FR.contentFormat(points[2].value,
'#0.00')+'</span>'+this.name+'</div>';}
else{total
+=
'<div
align=center
><span
style="font-size:25px;color:'+FR.contentFormat(points[1].value,
'')+'">'+FR.contentFormat(points[2].value,
'#0.00')+'</span>'+this.name+'</div>';}
for(var i = 0, len = points.length-2; i < len; i++)
{total += ('<div align=center>'+FR.contentFormat(points[i].value,
'#0.00')+'</div>');}
total+='</div>'; return total;}
div align=center style="margin-top 当读取名字为内蒙古自治区时候,
我们进行 margin 显示位置的调整,使其不显示偏离
FR.contentFormat(value, '#.##%')进行数值格式自定义,后面的'#.##%'
可以根据实际需求进行更改;
this.points 这个参数在地图中使用时表示同一个区域上的不同的系列的
自定义 JS 显示提示点
选择图表属性表-样式>提示,内容选择自定义,JS 如下: