LevisNgigi opened a new pull request, #32767:
URL: https://github.com/apache/superset/pull/32767

   <!---
   This PR introduces an aggregation method dropdown for the Big Number with 
Trendline visualization. 
   It allows users to apply different aggregation functions (SUM, AVG, MIN, 
MAX, MEDIAN, LAST_VALUE) to the selected metric.
   -->
   
   ### **SUMMARY**
   This PR enhances the **Big Number with Trendline** visualization by 
introducing an **Aggregation Method** dropdown.  
   Previously, the chart defaulted to the **last value**.  
   With this change, users can now apply different aggregation methods to their 
selected metric, such as **SUM, AVG, MIN, MAX, MEDIAN, and LAST_VALUE**.  
   
   ### **BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF**
   <!--- Include screenshots or a GIF demonstrating the feature if applicable. 
--->
   
   ### **TESTING INSTRUCTIONS**
   To manually verify this feature:  
   1. Navigate to **Charts** and select a chart using **Big Number with 
Trendline** as the visualization type.  
   2. Select a **Temporal X-Axis** and a **Metric** for the query and run.  
   3. Choose different values from the **Aggregation Method** dropdown and 
observe updates in the **Big Number**:  
      - **SUM** → Displays the total of all values over the selected period.  
      - **AVG** → Displays the mean (average) of all values.  
      - **MIN/MAX** → Displays the lowest/highest value in the selected range.  
      - **MEDIAN** → Displays the middle value, reducing the effect of 
outliers.  
      - **LAST_VALUE** → Works as before, displaying only the most recent data 
point.  
   
   ### **ADDITIONAL INFORMATION**
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [x] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
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