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] Allows series ids to be numbers #11941

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

alexfauquette
Copy link
Member

@alexfauquette alexfauquette commented Feb 5, 2024

Modification to be consistent with the data grid DevExp

/**
 * The type of Id supported by the grid.
 */
export type GridRowId = string | number;

The first commit is about moving DefaultLegend in a dedicated file such that its proptypes are correctly generated and the API is extracted.

The other ones are about using string and number for ids, and fixing ll the typescript implication it has

@alexfauquette alexfauquette added the component: charts This is the name of the generic UI component, not the React module! label Feb 5, 2024
@mui-bot
Copy link

mui-bot commented Feb 5, 2024

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

Updated pages:

Generated by 🚫 dangerJS against 6ba0e4d

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 6, 2024
Copy link

github-actions bot commented Feb 6, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

Nice work! 👍🏼

Comment on lines -9 to +10
): {
[id: string]: ISeries & {
valueFormatter: IFormatter;
};
} {
const defaultizedSeries: {
[id: string]: ISeries & {
valueFormatter: IFormatter;
};
} = {};
): Record<SeriesId, ISeries & { valueFormatter: IFormatter }> {
const defaultizedSeries: Record<SeriesId, ISeries & { valueFormatter: IFormatter }> = {};
Copy link
Member

Choose a reason for hiding this comment

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

worth it for this alone ... so much more readible! 👍🏼

x: number;
y: number;
/**
* A unique id identifying the scatter point.
Copy link
Member

Choose a reason for hiding this comment

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

nit to be consistent

Suggested change
* A unique id identifying the scatter point.
* A unique identifier for the scatter point.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 6, 2024
@alexfauquette alexfauquette added the needs cherry-pick The PR should be cherry-picked to master after merge label Feb 6, 2024
@alexfauquette alexfauquette merged commit 0f62525 into mui:next Feb 6, 2024
18 checks passed
@alexfauquette alexfauquette deleted the fix-11679 branch February 6, 2024 12:36
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! needs cherry-pick The PR should be cherry-picked to master after merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants