【问题标题】:Angular NVD3: how to create custom tooltip for OHLC/Candlestick chart?Angular NVD3:如何为 OHLC/烛台图创建自定义工具提示?
【发布时间】:2017-10-30 12:01:54
【问题描述】:

我想向烛台图表添加自定义工具提示。我将折线图上带有自定义工具提示的示例修改为: plnkr example

tooltip: {
  contentGenerator: function (e) {
      //custom tooltip
  }
}

我使用了 tooltip.contentGenerator,但似乎烛台图表应该以另一种方式提示。
对于 OHLC/烛台图表上的自定义工具提示,我将不胜感激。

【问题讨论】:

    标签: angularjs charts tooltip nvd3.js candlestick-chart


    【解决方案1】:

    这对我来说是 Angular 6:

    chart: { useInteractiveGuideline: true,  interactiveLayer: {
      tooltip: {
        contentGenerator: (function (data) {
          //custom tooltip
        })
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-09
      • 1970-01-01
      • 2023-03-18
      • 1970-01-01
      • 2018-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多