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

Calculate user bounds when 'getMinMax()' is called #148

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

Cowjiang
Copy link
Contributor

@Cowjiang Cowjiang commented Aug 3, 2023

In the Financial Chart, thx y-axis remains unchanged when I use chatjs-plugin-zoom to zoom in. That's because the FinancialController overrides the method 'getMinMax()' and it doesn't calculate the range of data points which in user bounds.

So I add a method to get min/max values by scale.getUserBounds() and a filter for parsedDatas.

@santam85 santam85 merged commit cfe848a into chartjs:master Feb 21, 2024
@Cowjiang Cowjiang deleted the improve-get-min-max branch February 21, 2024 11:51
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.

None yet

2 participants