0

我有一个 jqplot 图表,它通过将鼠标悬停在侧面与其他元素相结合。现在我想给它添加 plotzooming,但是在你使用了缩放功能之后,datahover 就不再起作用了。我不知道如何修复或测试这个。

我这里有一个 jsFiddle:http: //jsfiddle.net/DWFTb/244/ 使用缩放后,没有更多日志,因此绑定事件不再起作用。

我使用 bar 示例来实现它,如下所示:

function showPoint(ev, seriesI, pointI, data){
   console.log(ev);
}
function hidePoint(ev){
    console.log('hide');
}

我尝试将事件“绑定”更改为 jQuery 函数on。没有帮助。我也尝试使用$.jqplot.eventListenerHooks.push('jqplotDataMouseOver', function(){...});

4

0 回答 0