[charts] Add a PolarProvider to manage polar axes#14642
[charts] Add a PolarProvider to manage polar axes#14642alexfauquette merged 6 commits intomui:masterfrom
PolarProvider to manage polar axes#14642Conversation
|
Deploy preview: https://deploy-preview-14642--material-ui-x.netlify.app/ |
CodSpeed Performance ReportMerging #14642 will not alter performanceComparing Summary
|
JCQuintas
left a comment
There was a problem hiding this comment.
Nice work 👍, left a comment in code plus the observation below
There is an empty file at packages/x-charts/src/context/PolarProvider/defaultizeAxis.ts
|
I merged the two computeValue in one. It's not supper coherent because the function is use in cartesian and polar context, plus exported as a cartesian axis utils. But should be good enough for now. I'm not sure about how much we will use this PolarProvider outside of the radar |
I think the changes are small enough that makes sense to have a single logic. In regards to where to put it, we could move it into the |
Follow-up of #14641
It introduces a
PolarProviderwhich has similar behavior has the cartesian one. The main differences:startAngletoendAngleminRadiustomaxRadiusNote the provider is not exported. So this is still internal code