
Eunjae LeeandDevin AI
e530ad5412
feat: add toggleable legend functionality to ChartCard components (#23390)
* feat: add toggleable legend functionality to ChartCard components
- Create useToggleableLegend hook for managing enabled/disabled series
- Update ChartCard to accept enabledLegend and onSeriesToggle props
- Add click handlers and visual feedback to Legend component
- Apply toggleable functionality to EventTrendsChart and RoutingFunnel
- Maintain backwards compatibility with existing charts
Features:
- Visual feedback: 50% opacity for disabled items, hover effects, cursor pointer
- Interactive legend items toggle chart series on/off
- Hook uses TypeScript generics for different legend item types
- Conditional rendering of chart series based on enabled legend items
- Full backwards compatibility - existing charts work unchanged
Co-Authored-By: eunjae@cal.com <hey@eunjae.dev>
* address feedback
* address feedback
* do not use !
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-09-01 14:54:30 +00:00
..
2025-09-01 08:07:36 +05:30
2025-08-31 21:42:34 +00:00
2025-08-06 00:29:55 +01:00
2025-07-01 07:01:32 +00:00
2025-03-03 15:53:28 -03:00
2025-08-27 13:28:33 -03:00
2025-09-01 14:21:30 +00:00
2025-08-08 12:56:13 +01:00
2025-09-01 14:54:30 +00:00
2025-05-05 17:21:15 -07:00
2025-09-01 08:07:36 +05:30
2025-09-01 02:56:32 +00:00
2025-08-31 21:42:34 +00:00
2025-08-06 13:54:57 +01:00
2025-09-01 08:08:13 +05:30
2024-03-07 11:38:40 -03:00
2025-08-01 06:04:53 +00:00
2025-08-30 22:06:53 +05:30