feat: add metric name for big number chart types #33013#33099
feat: add metric name for big number chart types #33013#33099Antonio-RiveroMartnez merged 20 commits into
Conversation
There was a problem hiding this comment.
I've completed my review and didn't find any issues.
Files scanned
| File Path | Reviewed |
|---|---|
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/types.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/types.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberTotal/transformProps.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/utils.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberTotal/controlPanel.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/sharedControls.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/controlPanel.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/transformProps.ts | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/PopKPI.tsx | ✅ |
| superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Need a new review? Comment
/korbit-reviewon this PR and I'll review your latest changes.Korbit Guide: Usage and Customization
Interacting with Korbit
- You can manually ask Korbit to review your PR using the
/korbit-reviewcommand in a comment at the root of your PR.- You can ask Korbit to generate a new PR description using the
/korbit-generate-pr-descriptioncommand in any comment on your PR.- Too many Korbit comments? I can resolve all my comment threads if you use the
/korbit-resolvecommand in any comment on your PR.- On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
- Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.
Customizing Korbit
- Check out our docs on how you can make Korbit work best for you and your team.
- Customize Korbit for your organization through the Korbit Console.
Current Korbit Configuration
General Settings
Setting Value Review Schedule Automatic excluding drafts Max Issue Count 10 Automatic PR Descriptions ❌ Issue Categories
Category Enabled Documentation ✅ Logging ✅ Error Handling ✅ Readability ✅ Design ✅ Performance ✅ Security ✅ Functionality ✅ Feedback and Support
Note
Korbit Pro is free for open source projects 🎉
Looking to add Korbit to your team? Get started with a free 2 week trial here
|
@geido Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
|
@geido Ephemeral environment spinning up at http://44.248.49.123:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup. |
|
@fardin-developer Is it possible to hide the metric name? There are cases where they are really extensive or the chart's title is pretty clear. @rusackas also asked how does it handle really long metric names. |
Thanks for your feedback. I have added a checkbox to show metric name, by default it will be hidden. |
|
@geido Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
There was a problem hiding this comment.
Could we create a control we can reuse instead of defining this on all 3 charts every time? something like how you use subtitleControl for example?
There was a problem hiding this comment.
resolved it.
There was a problem hiding this comment.
Same with this block, could this be some sort of util we can reuse in the 3 chart types?
There was a problem hiding this comment.
Thanks for the update! I’ve moved the originalLabel logic into a separate getOriginalLabel function and updated it to address issues where the metric key was incorrectly displayed in some cases. The new implementation now works as expected.
…e, fix spacing between name, big number and subtitle
…isibility and getOriginalLabel utility
… div and content height comparison to maintain consistency
414ca47 to
588f2c3
Compare
|
@Antonio-RiveroMartnez Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
|
@Antonio-RiveroMartnez Ephemeral environment spinning up at http://34.218.224.49:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup. |
Antonio-RiveroMartnez
left a comment
There was a problem hiding this comment.
Tested on the ephemeral and LGTM! Thanks for taking care of this
Screen.Recording.2025-05-07.at.4.43.02.PM.mov
Thank you @Antonio-RiveroMartnez . |
…#33099) Co-authored-by: Fardin Mustaque <fardinmustaque@Fardins-Mac-mini.local>
…#33099) Co-authored-by: Fardin Mustaque <fardinmustaque@Fardins-Mac-mini.local>


Fixes: #32985
SUMMARY
This PR introduces support for displaying the Metric name in Big Number chart types, including Big Number and Big Number with Time Comparison. The metric name appears above the main number, styled consistently with existing elements, and includes customization options in the control panel.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
CHANGES
BEFORE/AFTER SCREENSHOTS
Before
After
Screen.Recording.2025-04-07.at.12.32.34.AM.mov
ADDITIONAL NOTES
CHECKLIST