-
-
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
How to make BarChart Bar Sizes proportional? #1774
Comments
maybe you should check out ChartsDemo for those stacked bar chart to get started. I don't know how do you set it up, but it looks like wrong. |
Well I checked the 3.0 ready Demo but the only difference is that I'm setting the granularity. Is there any way to determine the number of steps/values the left Axis should hold? |
@patreu22 check |
Well check the left Axis. I don't think computeAxis can help in any way. So the problem is in the left Axis sizes. The part presenting the space between 0 and 2 is much much smaller than the one between the 2 and 3. Any idea how to solve that? |
My theory is if you set axisMinimum like 1.8, and the bar starts from 0, but only [1.8, 4] range is on the chart view, it will looks like yours. You need to check your yAxis.axisMinimum first. |
I have a BarChart with two data entries and want to have the Bar parts fitting the actual percentage. So in the example 1/3 of the bar should be green and 2/3 should be red.
I can't figure out why the step from 0 to 2 is smaller than from 2 to 3.
Has anybody an idea?
My current modifications of the y-axis are these:
The text was updated successfully, but these errors were encountered: