import { applyMargins, getStackClass } from "../../helpers"; import { LegendProps } from "./LegendProps"; export const Legend = ({ seriesNames, chart, axis }: LegendProps) => { const { margins, size: [sx], } = axis; const { x1, x2, y1, y2 } = applyMargins(chart, margins); const interval = (sx) / (seriesNames.length); const { margin: [_, my] } = margins return {seriesNames.map((s, index) => {s} )} ; };