-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[BUG] all-negative Stacked horizontal Bar Chart size is not correct #222
Comments
Did you specify a custom range...? |
The negative demo sets a custom axis range. |
I don't realize you have set _chartView.rightAxis.customAxisMax = 25.0;
_chartView.rightAxis.customAxisMin = -25.0; Comment it out, it works fine with the all negative values. However, If I use the default demo code data, e.g. half negative half positive and comment out customAxisMin/Max code, the chart becomes weird... Can you try it on your side? |
1 similar comment
I don't realize you have set _chartView.rightAxis.customAxisMax = 25.0;
_chartView.rightAxis.customAxisMin = -25.0; Comment it out, it works fine with the all negative values. However, If I use the default demo code data, e.g. half negative half positive and comment out customAxisMin/Max code, the chart becomes weird... Can you try it on your side? |
@danielgindi, looks like this issue has been fixed on 2.1.2? |
Hi Daniel,
I have updated the code to today's latest, after you fixed some of the bugs, thanks for it.
If I use all negative values for stacked horizontal bar chart in demo code like:
The size of the stack is out of bound, looks like the range is not calculated correctly; the negative range is still 21M, while it should be @-19 + @-20? check the screenshot:
The text was updated successfully, but these errors were encountered: