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 visualization for stacked bar charts #984

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

alan-unravel
Copy link
Contributor

grouped_bar
Allows for passing of a renderType for bar-charts rendering too a grouped bar chart if "group" or a stacked bar chart if "stack"

@alan-unravel alan-unravel changed the title Grouped visualization for stacked bar charts [WIP] Grouped visualization for stacked bar charts Aug 31, 2015
@gordonwoodhull gordonwoodhull modified the milestone: v2.1 Sep 14, 2015
@gordonwoodhull
Copy link
Contributor

@Sid0403, @MsJR, I've also created a branch for this alternate candidate implementation for grouped bars.

Branch: https://github.com/dc-js/dc.js/tree/kavanagh-grouped-bar
Zip file: https://github.com/dc-js/dc.js/archive/kavanagh-grouped-bar.zip
Example: https://github.com/dc-js/dc.js/blob/kavanagh-grouped-bar/web/examples/grouped-bar.html

The interface is slightly different: you set .renderType('group') instead of groupBars(true), and there doesn't seem to be a way to set the gap between groups. Documentation

I notice that bar labels (which were implemented after this PR) don't work - they should be easy to fix but I couldn't figure it out with a quick look.

Trying out this implementation and reviewing it here will be of great help. We'll merge the best features from each of the implementations.

@gordonwoodhull gordonwoodhull modified the milestone: v2.1 Dec 2, 2016
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

Successfully merging this pull request may close these issues.

2 participants