Skip to content
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

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

JCQuintas
Copy link
Member

Refer to: #13726 (comment)

@JCQuintas JCQuintas added enhancement This is not a bug, nor a new feature component: charts This is the name of the generic UI component, not the React module! labels Jul 12, 2024
@JCQuintas JCQuintas self-assigned this Jul 12, 2024
@mui-bot
Copy link

mui-bot commented Jul 12, 2024

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

Generated by 🚫 dangerJS against 2ea3ead

axis: AxisConfig<ScaleName, any, ChartsAxisProps>[] | undefined;
extremumGetters: { [K in CartesianChartSeriesType]?: ExtremumGetter<K> };
axisDirection: 'x' | 'y';
dataset: DatasetType | undefined;
Copy link
Member

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);
Copy link
Member Author

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 🤔

@JCQuintas JCQuintas merged commit 37fae37 into mui:master Jul 12, 2024
17 checks passed
@JCQuintas JCQuintas deleted the zoom-props-improvements branch July 12, 2024 12:34
DungTiger pushed a commit to DungTiger/mui-x that referenced this pull request Jul 23, 2024
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants