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

How can I group Bars? #139

Closed
jndefosse opened this issue Feb 20, 2015 · 1 comment
Closed

How can I group Bars? #139

jndefosse opened this issue Feb 20, 2015 · 1 comment

Comments

@jndefosse
Copy link

Hi, thank you for this library. It's a great job.

I have a problem. How can I group bars?

Like this :

zkvi1

@terryworona
Copy link
Collaborator

Sorry, the charting library does not support this kind of functionality.

A few ideas on how to hack this (using the example above):

  1. Create three separate charts; one for Chocolate, one for Vanilla and one for Strawberry. Create a master UIView that manages the layout of the three charts.
  2. Add 'fake' data between each of the groups (ie. bars with a value of 0)
  3. Modify the library to support groups (numberOfGroupsInChart:, barIndexForGroupIndex:), etc. This is the most complicated version.

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