Apexcharts.js: Brushchart jumping selection range while hovering

Created on 22 Apr 2020  路  3Comments  路  Source: apexcharts/apexcharts.js

  • What is the behavior you expect?
    Brush range selection should remain static size while hovering
  • What is happening instead?
    Selecting the range in brush and start moving this selection affects selection size accidentally jumping and changing its position
    Attachment:
    brush
  • How to reproduce it?
    It happens in demo example

The brushchart selection is important to me so I made a research in the code and found out what might be the reason of this behaviour:
In ZoomPanSelection.js at the top of the function svgMouseEvents there is an if statement which checks if event is "falsePositive", if true then the function returns before it registers the mouseup event. Removing the e.target.classList.contains('apexcharts-selection-rect') from the statement fixes the issue for my case.

I hope this explaination will help you fixing the issue

brush bug

Most helpful comment

Possibly related, but I get a null reference exception on that same line.

Uncaught TypeError: Cannot read property 'classList' of null
at ZoomPanSelection.svgMouseEvents (apexcharts.esm.js:14976)
svgMouseEvents @ apexcharts.esm.js:14976

image

image

e.target.parentNode is null. Which seems weird. Maybe it's getting removed from the document?

(ignore the line numbers. I had to rename the non-minimized file to apexcharts.esm.js to debug)

All 3 comments

Thank you for reporting the issue and digging out the cause of it.
I will take a look soon and will address it.

Possibly related, but I get a null reference exception on that same line.

Uncaught TypeError: Cannot read property 'classList' of null
at ZoomPanSelection.svgMouseEvents (apexcharts.esm.js:14976)
svgMouseEvents @ apexcharts.esm.js:14976

image

image

e.target.parentNode is null. Which seems weird. Maybe it's getting removed from the document?

(ignore the line numbers. I had to rename the non-minimized file to apexcharts.esm.js to debug)

Any plans on putting that on a schedule to be fixed in the near future?
Thanks for your feedback

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ordago picture ordago  路  3Comments

felixalguzman picture felixalguzman  路  3Comments

frlinw picture frlinw  路  3Comments

artfulrobot picture artfulrobot  路  3Comments

tcarlsen picture tcarlsen  路  3Comments