Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zoom does not work in combination with logarithmic yaxis with more than one series #4344

Closed
ms20de opened this issue Mar 21, 2024 · 1 comment · Fixed by #4341
Closed

zoom does not work in combination with logarithmic yaxis with more than one series #4344

ms20de opened this issue Mar 21, 2024 · 1 comment · Fixed by #4341
Labels
bug Something isn't working

Comments

@ms20de
Copy link

ms20de commented Mar 21, 2024

Description

Zooming seems to be broken with logarithmic scaling.

Steps to Reproduce

  1. More than one series
  2. Use yAxis for both series, happens automatically or via new seriesName Array
  3. Set yAxis to logarithmic = true
  4. Try to zoom by selecting area with mouse

Expected Behavior

Zooming to selected area as normal

Actual Behavior

Selected area is show, than freeze with exception in console:
apexcharts:6 Uncaught TypeError: Cannot read properties of undefined (reading 'niceMax')
at apexcharts:6:246152
at Array.forEach ()
at i.value (apexcharts:6:246061)
at i.value (apexcharts:6:240941)

Firefox: Selection can not be finished
Chrome: Freeze

Works if logarithmic is not set.

Screenshots

Freeze after selection is finished.
image

Reproduction Link

https://codepen.io/ms20de/pen/LYvWgyV

@ms20de ms20de added the bug Something isn't working label Mar 21, 2024
@ms20de ms20de changed the title zoom does not in combination with logarithmic yaxis with more than one series zoom does not work in combination with logarithmic yaxis with more than one series Mar 21, 2024
@rosco54
Copy link
Contributor

rosco54 commented Mar 22, 2024

This is fixed in yesterdays pull request #4341, in response to issue #4340.
Apologies for not catching it in the initial versions of the seriesName-as-an-array feature. Zooming works in 3.48.0 with the traditional seriesName-as-a-string-only style.

PS. Zooming using the "+" and "-" toolbar buttons works in either style. It's just the drag selection zoom that is broken I believe.

@rosco54 rosco54 mentioned this issue Mar 23, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants