优艾设计网

echart 2.2.7雷达图showTip不显示,为什么?

优艾设计网 https://www.uibq.com 2023-02-16 07:27 出处:网络 作者:磨皮美容教程
在雷达图的四周添加a标签,使用 $(aLabel).mouseover(function(){ console.log(chart.component.tooltip); chart.component.tooltip.showing=true; chart.component.tooltip.showTip({ seriesIndex: 0,dataIndex:idx


在雷达图的四周添加a标签,使用
$(aLabel).mouseover(function(){
console.log(chart.component.tooltip);
chart.component.tooltip.showing=true;
chart.component.tooltip.showTip({ seriesIndex: 0,dataIndex:idx });
});,tooltip却没办法显示出来,
如果把option里面tooltip的sh优艾设计网_PS论坛ow改为true,然后用$(aLabel).click却能够显示出tooltip,但是需求是鼠标在图表内部悬浮时不弹出提示,只有在鼠标移动到a标签上才弹出提示,求解决!


0

精彩评论

暂无评论...
验证码 换一张
取 消