-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add display value of bar chart #114
Conversation
24fae64
to
4fb5b5d
Compare
Thanks for the contribution, @dgdblank ! I haven't had time to do a full review & test yet, but just a few notes:
Thanks again for your work on this! Hope this doesn't seem too nitpicky but I think it's valuable for us to ensure naming consistency across the library, to reduce developer confusion whenever possible. -d |
src/Bar.js
Outdated
}; | ||
static defaultProps = { | ||
x: 0, | ||
y: 0, | ||
thickness: 8, | ||
className: "", | ||
style: {} | ||
style: {}, | ||
textDistance: 24 |
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.
is this used?
969d86b
to
9850414
Compare
@krissalvador27 whoops, fixed. |
Like @dandelany said I agree that a long term solution around some smart HOC or something of that flavor could be implemented that can allow someone to decorate bars, scatterplot points etc in the future with provided coordinates (among other props/options). Will merge though since this is a good interim solution! |
👏 👏 thanks @krissalvador27 @dgdblank |
* Add display value of bar chart * Change names on Bar from text to labels
Allow users to optionally show the values of the bar in the bar chart.