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

Grouped Bar Charts #1333

Closed
narri007 opened this issue Aug 18, 2016 · 4 comments
Closed

Grouped Bar Charts #1333

narri007 opened this issue Aug 18, 2016 · 4 comments

Comments

@narri007
Copy link

Hi, I am using Bar charts in my project.
Now I want to implement grouped charts with two different scales. On left axis the scale should be based on dataSet1 , on right axis the scale should be based on dataSet2. How can I achieve this? Below is the required output screen.
activity

Thanks in advance!

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 22, 2016

@danielgindi we did not support this in v3 right?

@narri007
Copy link
Author

Can you please suggest me any way to achieve this.

@danielgindi
Copy link
Collaborator

Actually you can do this. You just have to calculate the grouped bar positions yourself. You can take a look the the built-in function that calculates the positions.

What you want to achieve is to offset the second bar by (- barWidth / 2.0 ), or offset the first one by (barWidth / 4.0 ) and the second one by (- barWidth / 4.0 )

This is possible due to the fact that you can specify any x-value you like!

@liuxuan30
Copy link
Member

guess we can document somewhere. It's valuable.

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