Create multiple brush charts using VueJs and Apexcharts
P粉470645222
P粉470645222 2023-08-26 20:17:05
0
1
541
<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粉470645222
P粉470645222

reply all(1)
P粉884667022

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template