【问题标题】:d3.js How to add mouseover function when it already had brush and zoom functiond3.js 如何在已有画笔和缩放功能时添加鼠标悬停功能
【发布时间】:2016-11-16 19:31:06
【问题描述】:

我有这个代码http://bl.ocks.org/mbostock/34f08d5e11952a80609169b7917d4172 一个参考。它具有画笔和缩放功能

但我也想有鼠标悬停功能来显示价值和时间。但似乎缩放功能已经覆盖了上边距。

有什么方法可以解决这个问题吗?

【问题讨论】:

    标签: javascript d3.js charts


    【解决方案1】:

    这是因为剪辑区域,(上部,又名焦点图表)。

    参考这个:http://wrobstory.github.io/2013/11/D3-brush-and-tooltip.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      • 2011-07-07
      • 2012-11-13
      • 2019-02-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多