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

[shape] add <BarGroup /> & <BarStack />. fixes #38 #39

Merged
merged 4 commits into from
May 22, 2017
Merged

Conversation

hshoff
Copy link
Member

@hshoff hshoff commented May 22, 2017

screen shot 2017-05-22 at 4 37 29 pm

fixes #38

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 28.702% when pulling 447f479 on harry-bar into 7c9959a on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 29.108% when pulling 98b61b2 on harry-bar into 7c9959a on master.

@hshoff hshoff merged commit da020e7 into master May 22, 2017
@hshoff hshoff deleted the harry-bar branch May 22, 2017 23:58
Copy link
Collaborator

@williaster williaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great! 💯 left a few small comments

x0Scale,
x1Scale,
yScale,
zScale,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit -- not sure if you're using this widely but I think fillScale is a little more explicit when you're potentially juggling differences between fill/stroke

width={x1Scale.bandwidth()}
height={height - yScale(value)}
fill={zScale(key)}
{...Object.keys(restProps).reduce((ret, cur) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems useful, could extract the entire function in addition to callOrValue

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.

[BarStack] Add <BarStack /> shape component
3 participants