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

20 lines (19 loc) 926 B
import React from 'react'; import { ChartScale } from './scales'; import { ChartDataTypes, MixedChartProps } from './interfaces'; export interface BarSeriesProps<T> { series: MixedChartProps.DataSeries<T>; color: string; totalSeriesCount: number; seriesIndex: number; xScale: ChartScale; yScale: ChartScale; innerHeight: number; highlighted?: boolean; dimmed?: boolean; stackedBarOffsetMap?: Record<string, number>; onClick: (serie: BarSeriesProps<T>['series'], trigger: Element | null) => void; onMouseOver: (serie: BarSeriesProps<T>['series'], trigger: Element | null) => void; onMouseOut: React.MouseEventHandler; } export default function BarSeries<T extends ChartDataTypes>({ series, color, xScale, yScale, highlighted, dimmed, stackedBarOffsetMap, totalSeriesCount, seriesIndex, innerHeight, onClick, onMouseOver, onMouseOut }: BarSeriesProps<T>): JSX.Element | null;