-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] Fix some props not working in xAxis/yAxis #13372
Conversation
Deploy preview: https://deploy-preview-13372--material-ui-x.netlify.app/ |
@JCQuintas COuld you review the last commits? The PR introduces following line, I assume to fix TS position: inProps.position || defaultProps.position, The TS issue came from the settings which has type This last commit makes sure that x-axis settings only get the x-axis attribute (top and bottom) and the y-axis only get the left and right. |
@alexfauquette looked a bit at @Valyok26 comments that Though |
For For the |
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.
Seems to be working as expected. We will look at the ticksNumber
in another issue. Thanks @Valyok26 for the PR 😃
|
It's unclear what would be our next steps, should we remove the ticksNumber type from theme overrides, or should we make sure we are able to load it from theme? |
If I think about it, it would probably make sense that the |
Co-authored-by: Jose Quintas <juniorquintas@gmail.com> Co-authored-by: alexandre <alex.fauquette@gmail.com>
Co-authored-by: Jose Quintas <juniorquintas@gmail.com> Co-authored-by: alexandre <alex.fauquette@gmail.com>
Fixes #13371
When props are assigned, priority is bottomAxis -> xAxis -> theme -> defaults.
Also while fixing this, found out that
tickNumber
andreverse
cannot be assigned withbottomAxis
, but that's much harder to fix.Also
position
cannot be set with xAxis/yAxis, but I'm not sure it worth adding lines to ChartsAxis.tsx just to change this behavior.