对于{a} {b} {c} {d}变量的解释:
{a} <br/>{b}: {c} ({d}%)"//模板变量有 {a}、{b}、{c}、{d},分别表示系列名,数据名,数据值,百分比;
在label加入下列代码,要几位写几位
label: {
normal: {
show: true,
formatter: "{b}" + "({d}%)" + "{c}" + "人",
formatter: function (data) {
return data.name + " : " + data.value+"人"+data.percent.toFixed(0)+"%";
}
},
},