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

23 lines (22 loc) 1.12 kB
import React from 'react'; import { ChartDataTypes, InternalChartSeries, MixedChartProps, ScaleType } from './interfaces'; import { ChartScale } from './scales'; interface ChartContainerProps<T extends ChartDataTypes> { series: ReadonlyArray<InternalChartSeries<T>>; visibleSeries: ReadonlyArray<InternalChartSeries<T>>; width: number; height: number; xScaleType: ScaleType; yScaleType: ScaleType; xScale: ChartScale; yScale: ChartScale; xTitle?: string; yTitle?: string; stackedBars?: boolean; highlightedSeries?: MixedChartProps<T>['highlightedSeries']; onHighlightChange: (serie: InternalChartSeries<T>['series'] | null) => void; pinnedSeries: InternalChartSeries<T> | null; setPinnedSeries: React.Dispatch<React.SetStateAction<InternalChartSeries<T> | null>>; } export default function ChartContainer<T extends ChartDataTypes>({ width, height, series, visibleSeries, highlightedSeries, onHighlightChange, pinnedSeries, setPinnedSeries, stackedBars, xScale, yScale, xScaleType, yScaleType, xTitle, yTitle }: ChartContainerProps<T>): JSX.Element; export {};