UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

16 lines (15 loc) 582 B
import { ChartSeriesMarkerType } from '../chart-series-marker'; export interface ChartLegendItem<T> { label: string; color: string; type: ChartSeriesMarkerType; datum: T; } export interface ChartLegendProps<T> { series: ReadonlyArray<ChartLegendItem<T>>; highlightedSeries: ChartLegendItem<T> | null; legendTitle?: string; ariaLabel?: string; onHighlightChange: (serie: T | null) => void; } export default function ChartLegend<T>({ series, onHighlightChange, highlightedSeries, legendTitle, ariaLabel }: ChartLegendProps<T>): JSX.Element | null;