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