Skip to content

[charts] Radar chart shows no tooltip on keyboard focus with the default trigger #24407

In review

Description

@siriwatknp

Steps to reproduce

  1. Render a RadarChart with the default tooltip (no slotProps.tooltip.trigger).
  2. Press Tab to move the focus into the chart.
  3. 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.

radar chart keyboard bug

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

  1. added
    type: bug
    scope: charts
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: chartstype: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions