-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Introduce hideLegend
prop
#15277
base: master
Are you sure you want to change the base?
Conversation
Deploy preview: https://deploy-preview-15277--material-ui-x.netlify.app/ |
<PiePlot slots={slots} slotProps={slotProps} onItemClick={onItemClick} /> | ||
<ChartsOverlay loading={loading} slots={slots} slotProps={slotProps} /> | ||
{!hideLegend && ( | ||
<ChartsLegend | ||
direction="column" | ||
position={{ vertical: 'middle', horizontal: isRtl ? 'left' : 'right' }} | ||
slots={slots} | ||
slotProps={slotProps} | ||
/> | ||
)} |
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 just adding to the file instead of changing a single line 😅
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.
Oopsi, bad cherry pick resolution
CodSpeed Performance ReportMerging #15277 will not alter performanceComparing Summary
|
Fix #15186
Will need to #15276 to highlight this props in the "Remove legend props" section for users who did only
legend={{ hidden: true }}
Changelog
If you find
slotProps={{ legend: { hidden: true } }}
too long, you can now usehideLegend
prop to prevent rendering the legend.