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 stacked bars on logarithmic axes #3699

Merged
merged 1 commit into from
Dec 18, 2016
Merged

Conversation

etimberg
Copy link
Member

@etimberg etimberg commented Dec 9, 2016

When a logarithmic scale is used for as the vertical axis of a stacked bar chart, the base value of 0 caused a problem. The solution is to add an item to the scale interface getBaseValue that gets the value in dataspace coordinates that corresponds to the pixel returned by getBasePixel.

I added a test to cover this case.

Resolves #3585

@etimberg etimberg force-pushed the logarithmic-stacked-bar branch from fab4616 to abba3db Compare December 10, 2016 14:56
@etimberg
Copy link
Member Author

CC @chartjs/maintainers for review

@etimberg etimberg closed this Dec 14, 2016
@etimberg etimberg reopened this Dec 14, 2016
@etimberg etimberg merged commit 7756bed into master Dec 18, 2016
@etimberg etimberg deleted the logarithmic-stacked-bar branch December 18, 2016 14:11
@simonbrunel simonbrunel added this to the Version 2.5 milestone Jan 14, 2017
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