echarts tooltip悬浮提示框 formatter
tooltip: { trigger: 'axis', axisPointer: { type: 'cross' }, formatter: params => { var res = params[0].name; for (var i = 0; i < params.length; i++) { res += "<br>" + params[i].marker + params[i].seriesName + ":" + params[i].data; } return res; } }