禁用一行的线图工具提示

发布于 2025-01-28 13:26:39 字数 67 浏览 4 评论 0原文

我正在创建一个带有多行的线图。我正在尝试禁用在其中一条线上弹出的工具提示。是否可以禁用其中一条线的工具顶部,但不是全部?

I am creating a line chart with multiple lines. I am trying to disable the tooltip that pops up over one of the lines. Is it possible to disable the tool top for one of the lines, but not all of them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

め可乐爱微笑 2025-02-04 13:26:39

这可以通过将Pointradius和Pointhitradius设置为0来完成。

数据集:[{data:[...],Pointradius:0,Pointhitradius:0}]>

This can be done by setting pointRadius and pointHitRadius to 0.

datasets:[{ data:[...], pointRadius: 0, pointHitRadius:0 }]

ぽ尐不点ル 2025-02-04 13:26:39

为了禁用特定意甲 /行的工具提示,您可以使用以下属性:

enableMouseTracking: false

例如,禁用“ Serie 2”的工具提示:

series: [{
        name: "Serie 1"
        data: [70, 55, 60]
    }, {
        name: "Serie 2"
        data: [45, 25, 40]
        enableMouseTracking: false
    }]

To disable the tooltip for a specific serie / line you can use the follow property:

enableMouseTracking: false

E.g. to disable the tooltip of the "Serie 2":

series: [{
        name: "Serie 1"
        data: [70, 55, 60]
    }, {
        name: "Serie 2"
        data: [45, 25, 40]
        enableMouseTracking: false
    }]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文