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

18 lines (17 loc) 800 B
import React from 'react'; import { ChartScale } from './scales'; import { ScaleType, MixedChartProps } from './interfaces'; export interface LineSeriesProps<T> { series: MixedChartProps.LineDataSeries<T> | MixedChartProps.ThresholdSeries; color: string; xScale: ChartScale; yScale: ChartScale; xScaleType: ScaleType; yScaleType: ScaleType; highlighted?: boolean; dimmed?: boolean; onClick: (serie: LineSeriesProps<T>['series'], trigger: Element | null) => void; onMouseOver: (serie: LineSeriesProps<T>['series'], trigger: Element | null) => void; onMouseOut: React.MouseEventHandler; } export default function LineSeries<T>({ series, color, xScale, yScale, highlighted, dimmed, onClick, onMouseOver, onMouseOut }: LineSeriesProps<T>): JSX.Element | null;