原文地址:https://www.cnblogs.com/cxl-/p/14487874.html
/**
params[i].marker:图例代码
**/
tooltip: { trigger: 'axis', formatter: function (params) { var relVal = params[0].name; for (var i = 0, l = params.length; i < l; i++) { relVal += '<br/>' + params[i].marker + params[i].seriesName + ' : ' + params[i].value + '%' } return relVal; } },