export interface ChartLegendItem { key: string; color: string; label: string; /** Dashed line swatch for comparison/forecast series. */ dashed?: boolean; /** Square swatch for bar series instead of the round line dot. */ square?: boolean; } /** * Legend shown in a chart block's heading controls: a round dot for line * series, a dashed swatch for comparison/forecast lines, and a square * swatch for bar series. * * @param props - Legend items to render. * @return The legend element. */ export function ChartLegend({ items }: { items: ChartLegendItem[] }): JSX.Element { return (