
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-08-29 09:59:47 -04:00
2025-08-29 03:09:52 +01:00
2025-04-24 11:10:54 +02:00
2025-09-01 14:21:30 +00:00
2025-08-29 17:42:15 +05:30
2025-07-31 20:39:27 +03:00
2025-08-14 17:57:59 +05:30
2025-02-21 05:14:57 -03:00
2025-09-01 14:38:57 +00:00
2022-07-28 13:58:26 -06:00
2025-07-30 13:17:13 +02:00
2025-08-26 13:22:43 +00:00
2025-05-22 03:28:21 +00:00
2025-08-29 17:42:15 +05:30
2025-08-14 17:57:59 +05:30
2025-08-30 14:57:24 +00:00
2025-03-19 19:00:55 -03:00
2025-08-29 05:04:05 +01:00
2025-03-19 19:00:55 -03:00
2025-08-25 12:06:33 +00:00
2025-09-01 14:54:30 +00:00
2025-08-01 13:34:57 +00:00
2025-03-19 19:00:55 -03:00
2022-07-28 13:58:26 -06:00
2025-04-02 18:25:06 +01:00
2025-06-17 09:52:02 +03:00
2025-08-31 08:12:44 +00:00
2025-09-01 08:08:13 +05:30
2025-06-13 14:15:47 +00:00
2025-08-05 17:32:02 +00:00
2025-01-07 12:13:19 +00:00
2025-08-31 14:18:47 +00:00
2025-07-24 22:36:40 +01:00
2025-09-01 12:28:01 +00:00
2025-09-01 07:08:06 +00:00
2025-07-12 06:49:29 +00:00
2025-04-23 15:09:25 +01:00
2025-08-14 17:57:59 +05:30
2025-07-24 15:42:09 +00:00
2025-04-04 13:22:27 +00:00
2025-08-11 07:32:52 +00:00
2025-08-11 18:06:26 +01:00
2025-08-11 18:06:26 +01:00
2024-01-15 15:07:58 -05:00
2024-06-28 09:42:38 +01:00
2025-08-29 05:04:05 +01:00
2025-07-10 18:06:57 +00:00
2025-08-31 19:58:34 +00:00
2025-07-16 16:36:41 +02:00
2025-01-24 09:41:13 +00:00
2025-08-25 01:30:45 +00:00
2023-03-24 17:59:04 -07:00
2025-03-03 15:53:28 -03:00