-
-
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
Horizontal Bar Chart rightAxis default maximum space #2363
Comments
Agree. I've updated the question above. When i enable the xAxis it will show the following: Maybe i wasn't clear before, but i want to remove the white space on the right side of the chart. I've added the current situation without the xAxis enabled in the Question above. I know i can set a AxisMaximum to 100 and change the values of the bar so together they will always be 100. But is there a way to set the AxisMaximum to the total of the values, without displaying the white space? |
Thanks, didn't know I had to set both the leftAxis and rightAxis Spaces |
After a few tests
|
Hi,
I'm trying to create a Horizontal Bar Chart where both ends (right and left axis) are aligned to the left and right side of the screen, with some offset. I've used the following code to remove both axises and set the axis minimum to zero.
self.leftAxis.enabled = false
self.leftAxis.axisMinimum = 0
self.rightAxis.enabled = false
self.rightAxis.axisMinimum = 0
The leftAxis is aligned the way is expecting it. However, the rightAxis is still showing some blank space. I can check this size with:
self.rightAxis.getRequiredHeightSpace()
Is there a way to remove or set this required space? I've tried to set spaceTop without success.
Here is an image as an example:
The text was updated successfully, but these errors were encountered: