Skip to content

[charts] Add disableTickLabel prop to radial axes#22801

Merged
JCQuintas merged 6 commits into
mui:masterfrom
JCQuintas:feat/radial-axis-disable-tick-label
Jun 16, 2026
Merged

[charts] Add disableTickLabel prop to radial axes#22801
JCQuintas merged 6 commits into
mui:masterfrom
JCQuintas:feat/radial-axis-disable-tick-label

Conversation

@JCQuintas

Copy link
Copy Markdown
Member

Motivation

ChartsRadiusAxis and ChartsRotationAxis always rendered tick label text. There was no way to keep the tick marks (for spacing/structure) while hiding their labels — only disableLine and disableTicks existed.

Changes

  • Add a disableTickLabel boolean to the shared ChartsAxisProps, consumed by ChartsRadiusAxis and ChartsRotationAxis to skip rendering the tick label <text> while keeping the ticks.
  • Expose the prop as a knob in the radius and rotation axis playgrounds.
  • Document disableLine / disableTicks / disableTickLabel in a new "Hiding axis elements" section on the radial axes page.

Note

disableTickLabel is a new public prop. The proptypes and API docs generators (pnpm proptypes, pnpm docs:api) still need to run before merge.

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.
@JCQuintas JCQuintas self-assigned this Jun 12, 2026
@JCQuintas JCQuintas added scope: charts Changes related to the charts. docs Improvements or additions to the documentation. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jun 12, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 🔺+37B(+0.01%) 🔺+31B(+0.03%)
@mui/x-charts-pro 🔺+48B(+0.01%) 🔺+24B(+0.02%)
@mui/x-charts-premium 🔺+35B(+0.01%) 🔺+22B(+0.01%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,989.38 ms +282.46 ms(+16.5%) | Renders: 67 (+0)

Test Duration Renders
CandlestickChart with big data amount (webgl renderer) 224.88 ms 🔺+47.64 ms(+26.9%) 5 (+0)
BarChart stacked with multiple series 141.92 ms 🔺+24.52 ms(+20.9%) 3 (+0)
RangeBarChart with big data amount 80.41 ms 🔺+16.98 ms(+26.8%) 3 (+0)
SparkLineChart grid of 100 instances 163.18 ms +25.74 ms(+18.7%) 1 (+0)

22 tests within noise — details

Metric alarms

Test Metric Change
CandlestickChart with big data amount (webgl renderer) bench:paint 🔺 +53.65 ms
RangeBarChart with big data amount bench:paint 🔺 +26.96 ms
SparkLineChart grid of 100 instances bench:paint 🔺 +66.21 ms

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
JCQuintas marked this pull request as ready for review June 12, 2026 11:24
@JCQuintas
JCQuintas requested a review from alexfauquette as a code owner June 12, 2026 11:24
@JCQuintas
JCQuintas merged commit 5455d9c into mui:master Jun 16, 2026
19 of 20 checks passed
@JCQuintas
JCQuintas deleted the feat/radial-axis-disable-tick-label branch June 16, 2026 13:29
mbrookes pushed a commit to mbrookes/mui-x that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. scope: charts Changes related to the charts. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants