tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow',
},
formatter: function (params: any) {
var res = "<span style='color: #00d0e4'> " + params[0].name + "</span>" + '<br/>';
for (var i = 0, l = params.length; i < l; i++) {
res += "<span style='display:inline-block;margin:0 10px;width:15px;height:8px;background-color:" +
params[i].color +
";'></span>" + params[i].seriesName + ' : ' + params[i].value + ' ' + props.unit + '<br/>';
}
return res;
}
},