-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[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
Conversation
Deploy preview: https://deploy-preview-16331--material-ui-x.netlify.app/ |
CodSpeed Performance ReportMerging #16331 will not alter performanceComparing Summary
|
tooltipGetter
to plugin systemtooltipGetter
to seriesConfig
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.
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; |
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.
Maybe identifier
or itemIdentifier
woudl make more sens. From item
we could expect to gat any value related to the item
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.
You forgot the Heatmap ;)
Allow different series types to provide their own legendGetter config