将鼠标悬停在与鼠标指针不符的图表上

问题描述

Screenshot of the issue

问题GIF的网址-> https://gfycat.com/selfishpitifuldunnart

正如您在图像鼠标指针中看到的那样,黑点距离十字准线/工具提示很远,我尝试了所有我知道的可能选项,甚至尝试将库从V6.0.4更新到V8.1.2,但无法不能正常工作。任何帮助表示赞赏。谢谢。下面是我用来初始化图表的代码

var avgTempChartingOptions = {
    chart: {
        type: 'spline',renderTo: 'avgTemperatureChartPanelChart',backgroundColor: 'rgba(255,255,0.0)',zoomType: 'xy',panning: true,panKey: 'shift',mapNavigation: {
            enableMouseWheelZoom: true
        },},title: {
        text: ''
    },xAxis: {
        type: 'datetime',title: {
            text: 'Date'
        },labels: {
            enabled: false
        },events: {
            setExtremes: syncExtremes
        },yAxis: {
        linewidth: 1,lineColor: '#ccd6eb',boost: {
        useGPUTranslations: true
    },tooltip: {
        shared: true,crosshairs: true,followPointer: false,// positioner: function() {
        //     return {
        //         x: this.chart.chartWidth - this.label.width,// right aligned
        //         y: -1 // align to title
        //     };
        // },plotOptions: {
        scatter: {
            tooltip: {
                followPointer: true
            }
        },spline: {
            marker: {
                enabled: false
            }
        },series: {
            // stacking: 'normal',// cursor: pointer,animation: true,enableMouseTracking: true,boostThreshold: 100 // number of points in one series,when reaching this number,boost.js module will be used
        }
    },exporting: {
        sourceWidth: 1200,sourceHeight: 800,series: []
};

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)