@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
26 lines • 1.84 kB
TypeScript
import { ChartSeriesMarkerType } from '../internal/components/chart-series-marker';
import { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps } from './interfaces';
import { ScaledBarGroup } from './make-scaled-bar-groups';
export declare const chartLegendMap: Record<string, ChartSeriesMarkerType>;
export declare const nextValidDomainIndex: <T>(nextGroupIndex: number, barGroups: ScaledBarGroup<T>[], direction?: number) => number;
/**
* Find the subset of series that are individually navigable with keyboard.
* Lines and thresholds are navigated individually, while bar series are grouped as one.
*/
export declare function findNavigableSeries<T extends ChartDataTypes>(series: ReadonlyArray<InternalChartSeries<T>>): {
navigableSeries: MixedLineBarChartProps.ChartSeries<T>[];
navigableBarSeriesIndex: number;
};
/**
* Checks if two x values are equal.
* With a special treat for Date values which need to be converted to numbers first.
*/
export declare const matchesX: <T>(x1: T, x2: T) => boolean;
export type StackedBarValues = Map<string | number, Map<number, number>>;
export declare function calculateStackedBarValues(dataBySeries: Array<readonly MixedLineBarChartProps.Datum<ChartDataTypes>[]>): StackedBarValues;
/** Returns string or number value for ChartDataTypes key */
export declare const getKeyValue: (key: ChartDataTypes) => string | number;
export declare function isYThreshold<T>(series: MixedLineBarChartProps.ChartSeries<T>): series is MixedLineBarChartProps.YThresholdSeries;
export declare function isXThreshold<T>(series: MixedLineBarChartProps.ChartSeries<T>): series is MixedLineBarChartProps.XThresholdSeries<T>;
export declare function isDataSeries<T>(series: MixedLineBarChartProps.ChartSeries<T>): series is MixedLineBarChartProps.DataSeries<T>;
//# sourceMappingURL=utils.d.ts.map