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

Fix a potential crash condition when collapsing series' #4405

Merged

Conversation

rosco54
Copy link
Contributor

@rosco54 rosco54 commented Apr 16, 2024

Fixes a bug introduced in a previous PR.

In Scales.niceScale() when the passed-in yMin and yMax indicate no data, cannot simply substitute w.globals.min and w.globals.max as the user may have configured one or both as a function, making it likely that the global min/max values are not suitable and which can cause undefined behaviour. Substitute sane default values in that case.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

simply use w.globals.min and w.globals.max because the user may have
configured one or both as a function, which can cause those global
values to be poor substitutes causing undefined behaviour. Substitute
sane default values in that case.
@junedchhipa junedchhipa merged commit dfd0973 into apexcharts:main Apr 16, 2024
@rosco54 rosco54 deleted the Fix_for_merged_pull_request_4363 branch May 5, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants