-
Notifications
You must be signed in to change notification settings - Fork 133
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
Bar chart width (spacing) #621
Comments
Solved. For anyone, who needs the code:
IMO, these calculations should be done by the library, so, probably, take it into account Also, please, take in mind, that I had to use And one more thing, when you click on the first bar in the group, opacity applies to label too. Only if you click on the first bar, not others, so it leads one more bug. Had to disable press |
@leineveber Thanks for posting your solution. It helped me. I saw you're using labelWidth (xAxis) to get the chart width, don't you mean to use yAxisLabelWidth (yAxis) instead? |
Hello, thanks for your package!
I wanted to ask, how should I calculate the bar width and spacing? For example, I have 5 groups of bars. Each group has 5 bars in it.
I've added spacing 16 between groups and 2 between bars, bar width - 8 (from the example). It works totally fine, however, if I rotate, it won't resize.
I assume it happens since the total sum of width is not filled, like, in MpAndroidChart, the total sum should be "1" - so you should calculate every bar and space and it should give you 1. But how to calculate size here?
For better understanding, I will provide you my code.
to not dive into data manipulations, result data is:
Thanks in advance!
The text was updated successfully, but these errors were encountered: