import { ChartProps } from "../../types"; import { BarPlot } from "./BarPlot"; import { XAxis, YAxis } from "../shared"; import { getAxisParameters, getChartCoordinates } from "../../helpers"; export const BarChart = (props: ChartProps) => { const { className, children, axis, data, size } = props; const [xaxis, yaxis] = axis; const chart = getChartCoordinates(props); const axisParams = getAxisParameters(props) const { x1, y2, x2, y1 } = chart; return <> {children} }