rusackas opened a new pull request, #34759: URL: https://github.com/apache/superset/pull/34759
## Summary Fixes #31864 When bar chart axis labels are visually truncated by ECharts due to space constraints, the tooltip now shows the full label text by preferring the `axisValue`/`axisValueLabel` properties which contain the complete text. This enhancement allows users to hover over data points and see the full name even when the axis label is shortened for display purposes. ## Changes - Modified the tooltip formatter in `transformProps.ts` to use `axisValue` or `axisValueLabel` when available (for axis tooltips) - Falls back to the original value extraction for compatibility - Added comprehensive tests for the tooltip behavior with long labels ## Test plan 1. Create a bar chart with long category names (> 12 characters) 2. Observe that axis labels are visually truncated 3. Hover over the bars to see tooltips 4. Verify that tooltips show the full label text ### Unit tests Added three new test cases: - Test that tooltips use `axisValue` when available (richTooltip mode) - Test fallback behavior when `axisValue` is not present - Test item tooltips (non-richTooltip mode) All tests pass successfully. ## Screenshots N/A - This is a tooltip behavior change that doesn't affect the visual appearance of the chart itself. 🤖 Generated with [Claude Code](https://claude.ai/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]
