Skip to content

Conversation

alexfauquette
Copy link
Member

Fix #18637

@alexfauquette alexfauquette added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: charts Changes related to the charts. labels Aug 19, 2025
@mui-bot
Copy link

mui-bot commented Aug 19, 2025

Deploy preview: https://deploy-preview-19240--material-ui-x.netlify.app/

Updated pages:

Bundle size report

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 🔺+2.19KB(+0.70%) 🔺+583B(+0.62%)
@mui/x-charts-pro 🔺+2.18KB(+0.55%) 🔺+589B(+0.49%)
@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%)

Details of bundle changes

Generated by 🚫 dangerJS against 550b079

Copy link

codspeed-hq bot commented Aug 19, 2025

CodSpeed Performance Report

Merging #19240 will not alter performance

Comparing alexfauquette:radar-axis-label (550b079) with master (ce8e44c)

Summary

✅ 10 untouched benchmarks

Copy link
Member

@JCQuintas JCQuintas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely, left some polishing comments

Comment on lines +20 to +24
textAnchor?: string | ((angle: number) => string);
/**
* The labels dominant baseline or a function returning the dominant baseline for a given axis angle (in degree).
*/
dominantBaseline?: string | ((angle: number) => string);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant we provide the proper values that should be used here? string may be too generic

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- `angle` The angle used to display labels. By default it's the one associated to the given metric.
- `labelOrientation` The orientation strategy. Either horizontal labels with moving anchor point, or label rotating with the axis.
- `divisions` The number of labels to display.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this different than <RadarChart divisions/>? Maybe also remove the "sync" in the example, as that is confusing, as changing the RadaAxis divisions shouldnt affect the grid.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think most of the user will have it sync. But I do not enforce it such that user can have 4 divisions and 2 labels

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point was more to show them that you can have different values between them. I was confused at first when I saw that the axis had its own "divisions". It makes sense that they are separate, but the example should threat them as separate things so it is clear to user.

@alexfauquette alexfauquette enabled auto-merge (squash) August 25, 2025 08:45
@alexfauquette alexfauquette added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. and removed 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 Aug 25, 2025
@alexfauquette alexfauquette merged commit 07ab4d9 into mui:master Aug 25, 2025
24 checks passed
@JCQuintas JCQuintas changed the title [charts] Add component to render axis labels [charts] Add RadarAxis component to render labels Aug 28, 2025
@prakhargupta1 prakhargupta1 moved this from To process to Recently completed in MUI X public roadmap Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Status: Recently completed
Development

Successfully merging this pull request may close these issues.

[charts] Add polar radius axis to radar chart
3 participants