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

In Multiple bar chart Unable to set Values more than 4 bar in under given year.. #2847

Closed
Saravana181187 opened this issue Oct 5, 2017 · 3 comments

Comments

@Saravana181187
Copy link

In multiple bar charts, i want to show 6 bars per group. But if the number of bars count increases beyond four, the bars exceeds to next group. Please help me on this.

img_0039

@roxanajula
Copy link

Can you post some code on how you are setting your chart?

@liuxuan30
Copy link
Member

check out ChartsDemo - multiple bar chart:

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

where 4 is the data set count. you can change it but make sure it sums to 1.0

@Saravana181187
Copy link
Author

ok Thanks...

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

3 participants