yousoph opened a new pull request, #38487:
URL: https://github.com/apache/superset/pull/38487
### SUMMARY
Fixes a bug where heatmap tooltips display numeric indices (0, 1, 2...)
instead of the actual axis values.
**Root cause:** PR #36302 changed the heatmap data structure to use axis
indices for proper sorting, but the tooltip formatter was not updated to look
up the actual values from the sorted arrays.
**Changes:**
- Updated tooltip formatter to look up actual x/y axis values from
`sortedXAxisValues` and `sortedYAxisValues` arrays using the indices
- Fixed percentage calculation when `normalizeAcross` is enabled to use
actual values instead of indices as lookup keys
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
**Before:** Tooltip shows `0 (1)` or similar numeric indices
**After:** Tooltip shows actual axis labels like `Mon (Morning)`
### TESTING INSTRUCTIONS
1. Create a heatmap chart with text labels on both axes (e.g., days of week
vs. time of day)
2. Hover over cells and verify the tooltip header shows actual axis labels,
not indices
3. Test with different sort options (X Axis Sort / Y Axis Sort):
- Alphabetical ascending/descending
- Metric value ascending/descending
4. Enable "Show percentage" and verify percentages calculate correctly
5. Test normalization mode (`normalizeAcross` = 'x', 'y', or 'heatmap') -
tooltips should still show correct values
6. Test with numeric and temporal axes to ensure formatters work correctly
### ADDITIONAL INFORMATION
- [x] Changes UI
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]