【问题标题】:Multiple brush charts with Apexcharts in VueJsVueJs 中使用 Apexcharts 的多个画笔图表
【发布时间】:2021-04-06 06:21:52
【问题描述】:

我正在开发一个应用程序,我在其中使用顶点图表来创建brush chart。但是,如示例所示,我希望我的画笔控制多个图表而不是单个图表。 在我开始使用回调之前,我想知道是否有一种简单的方法可以使用该库,例如通过传递一个目标数组:

brush:{
   target: 'chart2',
   enabled: true
 },

提前致谢,

【问题讨论】:

    标签: javascript vue.js apexcharts


    【解决方案1】:

    我认为这可能没有记录,但显然 apexcharts 允许您定义它:

    brush: { enabled: true, targets: ['candles', 'candles_2nd'] },
    

    我在 lib-code 中发现它实际上是这样处理它的:

    var targets = w.config.chart.brush.targets || [w.config.chart.brush.target]; // retro compatibility with single target option
    

    问候, 吉姆

    【讨论】:

      猜你喜欢
      • 2021-03-22
      • 1970-01-01
      • 1970-01-01
      • 2011-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-09
      相关资源
      最近更新 更多