Skip to content

[charts] On clicking a legend, support hiding/viewing series #19455

@prakhargupta1

Description

@prakhargupta1

Summary

It would be helpful for a user if clicking legends could toggle series visibility.
In #12344 we want to support series highlight on hover which is shown in the second half of the video below.

Examples

From OSS insights: https://ossinsight.io/analyze/mui/mui-x#pull-requests
They seem to be using Echarts.

Screen.Recording.2025-09-05.at.1.24.45.PM.mov

Benchmarks

  • Recharts - Doesn't support
  • Echarts - supports
  • Highcharts - supports
  • AG Charts - supports

Motivation

For better UX

Search keywords: legend click

Metadata

Metadata

Assignees

Labels

scope: chartsChanges related to the charts.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

Status

Future

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions