-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
feat: Funnel/tooltip-customization #25666
feat: Funnel/tooltip-customization #25666
Conversation
/testenv up |
@yousoph Ephemeral environment spinning up at http://54.245.25.94:8080. Credentials are |
Could you update the default for the tooltip contents to be "Category, Value, and Percentage" so it's in line with what the tooltips contain today? |
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.
Thank you for the improvement @CorbinBullard. I left some first-pass comments.
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/controlPanel.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/controlPanel.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/controlPanel.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/controlPanel.tsx
Outdated
Show resolved
Hide resolved
t('Category, Value and Percentage'), | ||
], | ||
], | ||
description: t('What should be shown as the tooltip Label'), |
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.
description: t('What should be shown as the tooltip Label'), | |
description: t('What should be shown as the tooltip label'), |
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.
LGTM. Thanks for the improvement @CorbinBullard!
Ephemeral environment shutdown and build artifacts deleted. |
This is an awesome feature. Can this be extended to all popular charts? |
I hate to be "that guy" on the open-source project, but we'd be happy to review PRs for this from you or anyone reading this. Hopefully this can be followed up on as an example implementation. |
SUMMARY
Added customization to funnel chart tooltips as well as the option to disable the tooltip
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
AFTER: