ecahrts 高亮触发与事件触发的触发条件不一样怎么解决

事件

  ele.on("mouseover",function(parm){
            me.stopPlay();
            me.ele.dispatchAction({
                type: 'highlight',
                seriesIndex:me.series,
                dataIndex: (parm.dataIndex)
            });
            me.count=parm.dataIndex;
            console.log(parm)
        });

tool触发配置

"tooltip": {
            "trigger":"axis",
            "axisPointer": {
                "type": "shadow",
                textStyle: {
                    color: "#fff"
                }

            },
        },

clipboard.png
现在的问题只有在柱形图上触发事件我想在显示tooltips触发事件

阅读 2.3k
1 个回答

可以利用tooltip.formatter的回调函数,我都是这样干的:)

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题