diff --git a/components/PieChart.tsx b/components/PieChart.tsx index 363b878..ad9bed6 100644 --- a/components/PieChart.tsx +++ b/components/PieChart.tsx @@ -7,7 +7,7 @@ import styles from "./PieChart.module.css"; interface PieChartProps { data: PieChartData[]; width: number; - textPadding: number; + labelWidth: number; className?: string; } @@ -16,8 +16,8 @@ interface PieChartData { value: number; } -export function PieChart({ width, textPadding, ...props }: PieChartProps) { - const pieWidth = width * 0.5 - textPadding; +export function PieChart({ width, labelWidth, ...props }: PieChartProps) { + const pieWidth = width * 0.5 - labelWidth; return ( diff --git a/pages/playground.tsx b/pages/playground.tsx index 897013b..de0f729 100644 --- a/pages/playground.tsx +++ b/pages/playground.tsx @@ -9,7 +9,7 @@ export default function Home() {

Playground

Show off your components here!

- +
);