tooltip : {
trigger: 'axis',
formatter: function (params, ticket, callback) {
var showHtm="";
console.log(params[0].dataIndex);
var dataIndex = params[0].dataIndex;
//名称
var name = info.reasonLists[dataIndex];
//值
var value = info.countLists[dataIndex];
showHtm+= name + ':' + value+'<br>';
return showHtm;
},
axisPointer: {
type: 'shadow'
}
}
Echarts 3 鼠标放在柱状图上的显示和 legend 显示的不同
最新推荐文章于 2024-09-09 14:08:32 发布