search

Home  >  Q&A  >  body text

Create multiple brush charts using VueJs and Apexcharts

<p>I am developing an application in which I have created a brush chart using apex charts. However, I would like my brush to control multiple charts, not just one, like shown in the example. Before I start using the callback function, I would like to know if there is an easy way to achieve this functionality through the library, for example by passing a target array: </p> <pre class="brush:php;toolbar:false;">brush:{ target: 'chart2', enabled: true },</pre> <p>Thanks in advance,</p>
P粉470645222P粉470645222457 days ago543

reply all(1)I'll reply

  • P粉884667022

    P粉8846670222023-08-27 17:03:34

    I thought this might be undocumented, but apparently apexcharts allows you to define this:

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

    I found in the library code that it is actually handled like this:

    var targets = w.config.chart.brush.targets || [w.config.chart.brush.target]; // 与单目标选项的向后兼容性

    Best wishes, Jim

    reply
    0
  • Cancelreply