-
Notifications
You must be signed in to change notification settings - Fork 715
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
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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
fixes #38