import React from "react"; import { ScaleLinear, ScaleBand } from "d3-scale"; type Props = { dataset: number[]; height: number; xScale: ScaleBand; yScale: ScaleLinear; }; export const BarText = ({ dataset, height, xScale, yScale }: Props) => { return ( {dataset.map((d, i) => ( {d} ))} ); };