放大
换行
倾斜
自定义tip
formatter: function (params, ticket, callback) {
var ret = params[0]['name'];
var body = '';
var total_val = 0;
for(var i in params){
var one = params[i];
if( one['seriesName']=='' )continue;
body += "<br/>" + one['seriesName']+':'+one['value'];
total_val = total_val + one['value'];
}
ret = ret + "<br/>汇总:"+total_val
+ body;
return ret;
}