From e0460861672a8eb809a7e55e1c4cc4ddbb0b0a1e Mon Sep 17 00:00:00 2001 From: Brian Love Date: Mon, 2 Jun 2025 17:48:41 -0700 Subject: [PATCH] 05-solution-donut-chart --- src/components/DonutChart.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/DonutChart.tsx b/src/components/DonutChart.tsx index f377a2b..0d84ae6 100644 --- a/src/components/DonutChart.tsx +++ b/src/components/DonutChart.tsx @@ -11,9 +11,17 @@ export function DonutChart(): ReactElement { return { data, title: { - text: 'Flight Time by Month', + text: 'Flight Time by Month (Donut)', }, - series: [], + series: [ + { + type: 'donut', + angleKey: 'time', + legendItemKey: 'label', + calloutLabelKey: 'label', + innerRadiusRatio: 0.6, + }, + ], theme, }; }, [data]);