【问题标题】:highcharts column graph tooltip need to close when mouseout the cursor from the graph当鼠标从图表中移出时,highcharts 柱形图工具提示需要关闭
【发布时间】:2021-11-23 05:26:08
【问题描述】:

我有柱形图,当我将光标悬停在图形工具提示上时,会显示,但如果我将光标从图形中移出并将光标放在图形绘图区域内,则工具提示不会关闭并且它正在显示工具提示。当我将光标从图表中移出时,我需要关闭工具提示。 注意:这个问题在我使用工具提示时面临:{shared: true}

【问题讨论】:

  • 嗨@Sandhya,你能在一些在线代码编辑器中重现这个问题吗?正如您在此示例中看到的:jsfiddle.net/BlackLabel/5y3ufosk 工具提示完全按照您的意愿工作。
  • 嗨,没关系,但我需要使用工具提示:{shared: true},当时我遇到了这个问题。请参考此处的示例:jsfiddle.net/Lw39jtu0 以重现该问题。

标签: highcharts react-highcharts


【解决方案1】:

对于系列,您需要将stickyTracking 属性设置为false

    series: [{
        stickyTracking: false,
        ...
    }]

现场演示: http://jsfiddle.net/BlackLabel/1kg04jw5/

API 参考: https://api.highcharts.com/highcharts/series.column.stickyTracking

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多