UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

18 lines 1.18 kB
import { ChartDataTypes, CommonMixedChartProps, MixedLineBarChartProps } from '../mixed-line-bar-chart/interfaces'; type LineSeries<T> = MixedLineBarChartProps.LineDataSeries<T> | MixedLineBarChartProps.ThresholdSeries<T>; export interface LineChartProps<T extends ChartDataTypes> extends CommonMixedChartProps<T> { /** * Array that represents the source of data for the displayed chart. * Each element can represent a line series or a threshold, and can have the following properties: * * * `title` (string): A human-readable title for this series * * `type` (string): Series type (`"line"`, or `"threshold"`) * * `data` (Array): An array of data points, represented as objects with `x` and `y` properties * * `color` (string): (Optional) A color hex value for this series. When assigned, it takes priority over the automatically assigned color * * `valueFormatter` (Function): (Optional) A function that formats data values before rendering in the UI, For example, in the details popover. */ series: ReadonlyArray<LineSeries<T>>; } export declare namespace LineChartProps { } export {}; //# sourceMappingURL=interfaces.d.ts.map