import { scaleLinear } from "d3-scale"; import { arc, pie } from "d3-shape"; import React from "react"; import { Arc } from "./Arc"; type Props = { data: any; }; export const Pie = ({ data }: Props) => { const width = 300; const height = 300; const pieGenerator = pie(); const arcs = pieGenerator.padAngle(0.1)(data); console.log(arcs); return (

Pie

{arcs.map((arc, i) => ( ))}
); };