formatter: function (params, ticket, callback) {
let str = '';
str += params[0]['name'];
for (let i in params) {
str += '\n';
str += '{marker' + i + 'at0|} ';
str += params[i]['seriesName'];
str += ':'
str += i == 3 ? (params[i]['value'] + '%') : params[i]['value'];
}
return str;
},
微信小程序Echarts中tooltip完美解决方案 即显示x值 又显示小圆点对应的类目和数值
最新推荐文章于 2024-07-19 16:52:47 发布