-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Defaultize axis on top level useChartContainerProps
#13817
Conversation
a6abebb
to
2ea3ead
Compare
Deploy preview: https://deploy-preview-13817--material-ui-x.netlify.app/ |
axis: AxisConfig<ScaleName, any, ChartsAxisProps>[] | undefined; | ||
extremumGetters: { [K in CartesianChartSeriesType]?: ExtremumGetter<K> }; | ||
axisDirection: 'x' | 'y'; | ||
dataset: DatasetType | undefined; |
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.
Why does the dataset is added in the arguments, but not used?
dataset: DatasetType | undefined; | ||
zoomData?: { axisId: AxisId; start: number; end: number }[]; | ||
}) { | ||
const allAxis = normalizeAxis(inAxis, dataset, axisDirection); |
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.
@alexfauquette dataset is used here 🤔
Refer to: #13726 (comment)