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

the x axis label is not in the right position when I used groupBarChart #3564

Closed
ganjmeng opened this issue Jul 18, 2018 · 3 comments
Closed

Comments

@ganjmeng
Copy link

I try to create multiple bar chart in objective-c. I look into the example project. But some how, the x axis label is not in the right position.
image
You can see at the image above. The position of the label and the grouped bar is not in the same position. How I can fix this problem?

image
image

@liuxuan30
Copy link
Member

be sure to follow what's in multiple bar chart:

        let groupSpace = 0.08
        let barSpace = 0.03
        let barWidth = 0.2
        // (0.2 + 0.03) * 4 + 0.08 = 1.00 -> interval per "group"

I'm not sure if your value sum to 1.0.

@ganjmeng
Copy link
Author


I'm sure

@liuxuan30
Copy link
Member

post your calculation of this.

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

2 participants