fardin-developer opened a new pull request, #33099:
URL: https://github.com/apache/superset/pull/33099

   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
   - Added metric name display to:
     - Big Number
     - Big Number with Time Comparison
   - Positioning and spacing follow existing patterns of Big Number and 
subtitle.
   - Metric name font size defaults to 24px and scales responsively with the 
chart.
   - Added toggle in Customize section to show/hide metric name.
   - Added input to control metric name font size (similar to Subheader Font 
Size).
   
   ### BEFORE/AFTER SCREENSHOTS
   ### Before
   <!-- Metric name not shown -->
   ![Screenshot 2025-04-07 at 1 28 27 
AM](https://github.com/user-attachments/assets/4f73b35e-cbb4-4f4b-b3c0-eacff039ee1c)
   ![Screenshot 2025-04-07 at 1 32 45 
AM](https://github.com/user-attachments/assets/76278f00-26af-4a15-96ee-b08bf5a16ee5)
   
   
   
   ##
   ### After
   ![Screenshot 2025-04-07 at 12 34 36 
AM](https://github.com/user-attachments/assets/8690cd28-1f87-43fc-9b13-bbbaa18ae808)
   ![Screenshot 2025-04-07 at 12 35 58 
AM](https://github.com/user-attachments/assets/f0ff295d-da89-4858-875f-be3c2d4dd267)
   
   
https://github.com/user-attachments/assets/a95ef5a7-28c7-4985-81e5-ada59c931b34
   
   ### ADDITIONAL NOTES
   - Ensured the feature behaves correctly across chart types and screen sizes.
   - Maintained dynamic scaling and visual hierarchy.
   - Verified with RTL support and Storybook examples.
   
   ### CHECKLIST
   - [x] Displayed metric name above the number for all Big Number chart types.
   - [x] Used responsive font scaling with base size 24px.
   - [x] Added toggle and font size input to Customize controls.
   - [x] Verified RTL compatibility.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to