You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[charts] Radar chart shows no tooltip on keyboard focus with the default trigger #24407
Render a RadarChart with the default tooltip (no slotProps.tooltip.trigger).
Press Tab to move the focus into the chart.
Press ArrowRight to focus a data point.
Recording
Recorded on the Radar docs page. Hovering shows the axis tooltip. After the chart gets focus, ArrowRight moves the focus indicator between data points, but no tooltip shows. The box in the top-right corner shows the last key pressed and where the focus is.
Current behavior
The data point gets the focus indicator, but no tooltip shows. Hovering the same point shows the axis tooltip.
Expected behavior
The tooltip shows for the focused data point, as it does for the bar, line, scatter, and pie charts.
Cause
The radar chart uses the axis tooltip by default. For cartesian charts, useChartCartesianTooltip.selectors.ts reads the keyboard axis index (selectorChartsKeyboardXAxisIndex and selectorChartsKeyboardYAxisIndex), so the axis tooltip follows the keyboard focus. The polar selectors in useChartPolarInteraction.selectors.ts (selectorChartsInteractionTooltipRotationAxes) only read the pointer position, so the radar's axis tooltip never follows the keyboard.
#21667 fixed the keyboard tooltip for trigger: 'item', and its test in RadarChart.test.tsx sets that trigger. The default 'axis' trigger has no keyboard test.
Suggested fix
Make the polar rotation axis tooltip use the focused item's index when the chart has keyboard focus, like the cartesian selectors do. Add a test for keyboard navigation with the default trigger.
Activity