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

BarChartView extends all bars to bottom when all values are negative #3949

Closed
huntermonk opened this issue Apr 17, 2019 · 1 comment
Closed

Comments

@huntermonk
Copy link

What did you do?

Created a BarChartView and supplied it with all negative y values.

What did you expect to happen?

I expected a chart similar to this, but flipped. Meaning, all bars starting at the top of the chart and extending down.
Screen Shot 2019-04-16 at 10 20 27 PM

What happened instead?

All bars extended downward to the bottom of the chart.
Screen Shot 2019-04-16 at 10 20 47 PM

I noticed that on highlight, the darkened portion appears to be the correct height.

Screen Shot 2019-04-16 at 10 20 50 PM Screen Shot 2019-04-16 at 10 20 54 PM

Charts Environment

Charts version/Branch/Commit Number: 3.2.1
Xcode version: Version 10.2 (10E125)
Swift version: 4.2
Platform(s) running Charts: iOS
macOS version running Xcode: 10.14.3 (18D109)

Demo Project

charts-issue.zip

@huntermonk huntermonk changed the title Bar Chart View extends all bars to bottom when all values are negative BarChartView extends all bars to bottom when all values are negative Apr 17, 2019
@huntermonk
Copy link
Author

This is fixed in version 3.3. 🎉

Messages Image(3487729937)

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

No branches or pull requests

1 participant