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

   ### SUMMARY
     This PR implements a unified custom tooltip feature for all deck.gl 
charts. The feature allows users to create custom tooltips using Handlebars 
templates, providing a consistent and flexible tooltip experience across 
deck.gl visualizations.
   
     The implementation supports:
     - Custom HTML templates using Handlebars syntax
     - Automatic field extraction from tooltip contents
     - Fallback to default tooltips when no template is provided
     - Aggregated data display for grid-based visualizations
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <img width="2138" height="924" alt="Screenshot 2025-07-12 at 17 37 03" 
src="https://github.com/user-attachments/assets/cbf46769-f8bb-49d9-841f-724c725d5c33";
 />
   
   ### TESTING INSTRUCTIONS
     1. Create any deck.gl chart (Scatter, Heatmap, Grid, Screengrid, Arc, 
Path, Polygon, Hex, or Contour)
     2. In the chart configuration, add columns/metrics to "Tooltip contents"
     3. Notice the "Customize tooltips template" field appears below with 
auto-generated template
     4. Hover over data points to see the custom tooltip
     5. Modify the template to use Handlebars helpers:
        ```handlebars
        <div class="custom-tooltip" style={{ yourStyleHere }}>
          {{ YOUR_COLUMN_OR_METRIC }}
        </div>
     6. Verify tooltips work correctly for aggregated data (e.g. Grid, 
Screengrid)
     7. Test that removing all content from the template falls back to default 
tooltips
   
   ### 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