【问题标题】:Implementation of brush with x-axis zoom with nvd3用nvd3实现画笔x轴缩放
【发布时间】:2016-11-21 02:36:49
【问题描述】:

我需要帮助在 nvd3 中实现具有时间范围的动态 x 轴。

我正在使用以下示例中显示的“带查找器图表的线”。我的 x 轴上绘制了日期。当我缩小查找窗口时,我想更改日期格式。 http://nvd3.org/livecode/index.html#codemirrorNav

以下是 d3 的实现,我想用 finder 实现相同的行为。在这里您可以看到当查找器窗口发生变化时,主图表中的日期格式也会发生变化。对于较小的查找器窗口,日期格式变为每小时。 http://bl.ocks.org/mbostock/34f08d5e11952a80609169b7917d4172

【问题讨论】:

    标签: d3.js nvd3.js


    【解决方案1】:

    我可以设法从以下堆栈溢出链接中获得解决方案。我在那里添加了最新 nvd3 版本的答案。

    NVD3 time formatting , line with focus chart

    【讨论】:

      猜你喜欢
      • 2017-01-15
      • 1970-01-01
      • 2011-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-21
      相关资源
      最近更新 更多