Skip to content

[charts] Move tooltipGetter to seriesConfig #16331

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

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

JCQuintas
Copy link
Member

Allow different series types to provide their own legendGetter config

@JCQuintas JCQuintas added type: enhancement This is not a bug, nor a new feature scope: charts Changes or issues related to the charts product labels Jan 25, 2025
@JCQuintas JCQuintas self-assigned this Jan 25, 2025
@mui-bot
Copy link

mui-bot commented Jan 25, 2025

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

Generated by 🚫 dangerJS against 8d83ef1

Copy link

codspeed-hq bot commented Jan 25, 2025

CodSpeed Performance Report

Merging #16331 will not alter performance

Comparing JCQuintas:item-tooltip-getter (8d83ef1) with master (435d09f)

Summary

✅ 6 untouched benchmarks

@JCQuintas JCQuintas changed the title [charts] Move tooltipGetter to plugin system [charts] Move tooltipGetter to seriesConfig Jan 25, 2025
Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

Nice to get rid of the pie chart exception 👍

export type TooltipGetter<T extends ChartSeriesType> = (params: {
series: ChartSeriesDefaultized<T>;
getColor: (dataIndex: number) => string;
item: ChartItemIdentifier<T> | null;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe identifier or itemIdentifier woudl make more sens. From item we could expect to gat any value related to the item

Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

You forgot the Heatmap ;)

@JCQuintas JCQuintas merged commit 17c3a63 into mui:master Jan 27, 2025
19 checks passed
@JCQuintas JCQuintas deleted the item-tooltip-getter branch January 27, 2025 12:56
A-s-h-o-k pushed a commit to A-s-h-o-k/mui-x that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: charts Changes or issues related to the charts product type: 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