diff --git a/src/components/Donut.tsx b/src/components/Donut.tsx index c5ddd77..f711ef4 100644 --- a/src/components/Donut.tsx +++ b/src/components/Donut.tsx @@ -8,7 +8,12 @@ export type DonutChartData = { value: number; }[]; -export function Donut({data, centerLabel, formatter, hoverSuffix}: { +export function Donut({ + data, + centerLabel, + formatter, + hoverSuffix + }: { data: DonutChartData, formatter: (value: number) => string, centerLabel: string, @@ -71,12 +76,13 @@ export function Donut({data, centerLabel, formatter, hoverSuffix}: { strokeWidth="3" strokeDasharray={`${value * normalisingFactor} ${100 - value * normalisingFactor}`} strokeDashoffset={100 - (offset * normalisingFactor) + 25} + style={{outline: 'none'}} /> ) }) } - + {formatter(total)}