我正在使用Echart.js库。
var echartLine = echarts.init(document.getElementById(' myChart'),主题);
在echart选项中,我添加:
tooltip: {
show: true,
showContent: true,
alwaysShowContent: true,
triggerOn: 'mousemove',
trigger: 'axis',
axisPointer:
{
label: {
show: true,
}
}
},
答案 0 :(得分:0)
将选项触发器:“轴”更改为触发器:“项目”,它应该像超级按钮一样工作。