-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[charts] Add barLabel to bar series. Deprecate barLabel in BarPlot.
#20184
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
[charts] Add barLabel to bar series. Deprecate barLabel in BarPlot.
#20184
Conversation
|
Deploy preview: https://deploy-preview-20184--material-ui-x.netlify.app/ Updated pages: Bundle size report
|
CodSpeed Performance ReportMerging #20184 will not alter performanceComparing Summary
Footnotes |
03d26ff to
a9078ed
Compare
| const { seriesId, data } = processedSeries; | ||
| const classes = useUtilityClasses(); | ||
|
|
||
| const barLabel = processedSeries.barLabel ?? props.barLabel; |
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 to allow composition?
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.
If not, we probably need to have a test for users that are currently passing barLabel in the composition of the BarPlot
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 to allow composition?
No, the goal is to maintain the current API without breaking changes.
If not, we probably need to have a test for users that are currently passing barLabel in the composition of the BarPlot
We're indirectly testing this through the BarChart tests that I added. Do you think it makes sense to test it separately for the BarPlot?
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.
My point is that we should keep compatibility for users providing this through composition to the BarPlot, so it would be good to have a test of the composition working to ensure we don't create a regression.
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.
Done 👍
Context: #20033 (comment).
Add
barLabelto bar series. DeprecatebarLabelinBarPlot.