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

11 lines 651 B
import { ChartScale, NumericChartScale } from '../internal/components/cartesian-chart/scales'; import { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps } from './interfaces'; export interface ScaledPoint<T> { x: number; y: number; color: string; datum?: MixedLineBarChartProps.Datum<T> | undefined; series: MixedLineBarChartProps.ChartSeries<T>; } /** Combine all line series into an array of scaled data points with the given scales. */ export default function makeScaledSeries<T extends ChartDataTypes>(allSeries: ReadonlyArray<InternalChartSeries<T>>, xScale: ChartScale, yScale: NumericChartScale): readonly ScaledPoint<T>[];