[charts] Add disableTickLabel prop to radial axes#22801
Merged
JCQuintas merged 6 commits intoJun 16, 2026
Conversation
ChartsRadiusAxis and ChartsRotationAxis always rendered tick labels. Add a disableTickLabel prop (on the shared ChartsAxisProps) to hide the tick label text while keeping the ticks, matching disableLine and disableTicks. Expose the prop in the radius and rotation axis playgrounds and document it in the radial axes page.
Deploy previewBundle size
PerformanceTotal duration: 1,989.38 ms +282.46 ms(+16.5%) | Renders: 67 (+0)
22 tests within noise — details Metric alarms
Check out the code infra dashboard for more information about this PR. |
Declare disableTickLabel on ChartsRotationAxisProps and ChartsRadiusAxisProps instead of the shared ChartsAxisProps, so it does not leak onto the cartesian axes where it is not implemented. Regenerate the API docs translations.
JCQuintas
marked this pull request as ready for review
June 12, 2026 11:24
alexfauquette
approved these changes
Jun 16, 2026
mbrookes
pushed a commit
to mbrookes/mui-x
that referenced
this pull request
Jun 27, 2026
Co-authored-by: alex <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
ChartsRadiusAxisandChartsRotationAxisalways rendered tick label text. There was no way to keep the tick marks (for spacing/structure) while hiding their labels — onlydisableLineanddisableTicksexisted.Changes
disableTickLabelboolean to the sharedChartsAxisProps, consumed byChartsRadiusAxisandChartsRotationAxisto skip rendering the tick label<text>while keeping the ticks.disableLine/disableTicks/disableTickLabelin a new "Hiding axis elements" section on the radial axes page.Note
disableTickLabelis a new public prop. The proptypes and API docs generators (pnpm proptypes,pnpm docs:api) still need to run before merge.