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 for enabling monotone cubicInterpolationMode when tension is 0 #9008

Merged
merged 1 commit into from Apr 30, 2021

Conversation

nagix
Copy link
Contributor

@nagix nagix commented Apr 30, 2021

In line charts, cubicInterpolationMode: 'monotone' doesn't work when tension is set to 0 (default). The 'monotone' mode should be enabled regardless of the tension value. This problem appears because the default value for tension was changed from 0.4 to 0 in version 3.x.

This PR adds checks for cubicInterpolationMode in a few places, adds a test and fixes a few affected tests.

@etimberg etimberg requested a review from kurkle April 30, 2021 11:51
@etimberg etimberg added this to the Version 3.2.1 milestone Apr 30, 2021
@etimberg etimberg merged commit dffc086 into chartjs:master Apr 30, 2021
@nagix nagix deleted the issue-9008 branch April 30, 2021 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants