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

Multiple negative-able values in Stack bar chart #455

Closed
wenBunny opened this issue Oct 6, 2015 · 1 comment
Closed

Multiple negative-able values in Stack bar chart #455

wenBunny opened this issue Oct 6, 2015 · 1 comment

Comments

@wenBunny
Copy link

wenBunny commented Oct 6, 2015

Scenario
Multiple negative-able values in one ChartDataSet.

Stack bar chart should be drawn with positive bars first, then the negative ones. Instead, it's drawn in the order of their indexes. The result is undefined when trying to draw negative value before a positive one.

Example:
BarChartDataEntry.values = [1, 1, -1, 1], colors = [red, green, yellow, black]
In this case, the yellow stack should be drawn below the xaxis, while black stack should be the one on top of it.

@wenBunny
Copy link
Author

wenBunny commented Oct 6, 2015

Never mind, I was ordering my dataset funky :[

@wenBunny wenBunny closed this as completed Oct 6, 2015
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