File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ export default class Core {
561
561
}
562
562
563
563
setupBrushHandler ( ) {
564
- const { w } = this
564
+ const { ctx , w } = this
565
565
566
566
if ( ! w . config . chart . brush . enabled ) return
567
567
@@ -570,7 +570,7 @@ export default class Core {
570
570
? w . config . chart . brush . targets
571
571
: [ w . config . chart . brush . target ]
572
572
targets . forEach ( ( target ) => {
573
- const targetChart = ApexCharts . getChartByID ( target )
573
+ const targetChart = ctx . constructor . getChartByID ( target )
574
574
targetChart . w . globals . brushSource = this . ctx
575
575
576
576
if ( typeof targetChart . w . config . chart . events . zoomed !== 'function' ) {
@@ -585,7 +585,7 @@ export default class Core {
585
585
586
586
w . config . chart . events . selection = ( chart , e ) => {
587
587
targets . forEach ( ( target ) => {
588
- const targetChart = ApexCharts . getChartByID ( target )
588
+ const targetChart = ctx . constructor . getChartByID ( target )
589
589
targetChart . ctx . updateHelpers . _updateOptions (
590
590
{
591
591
xaxis : {
You can’t perform that action at this time.
0 commit comments