@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
34 lines • 1.04 kB
TypeScript
import { XDomain, XScaleType, YDomain, YScaleType } from '../../internal/components/cartesian-chart/interfaces';
import { ChartScale, NumericChartScale } from '../../internal/components/cartesian-chart/scales';
import { AreaChartProps } from '../interfaces';
export default function computeChartProps<T extends AreaChartProps.DataTypes>({
isRtl,
series,
xDomain: externalXDomain,
yDomain: externalYDomain,
xScaleType,
yScaleType,
height,
width
}: {
isRtl?: boolean;
series: readonly AreaChartProps.Series<T>[];
xDomain?: XDomain<T>;
yDomain?: YDomain;
xScaleType: XScaleType;
yScaleType: YScaleType;
height: number;
width: number;
}): {
xDomain: XDomain<T>;
yDomain: YDomain;
xScale: ChartScale;
yScale: NumericChartScale;
xTicks: import("../../internal/components/cartesian-chart/interfaces").ChartDataTypes[];
yTicks: number[];
plot: {
xy: import(".").ChartModel.PlotPoint<T>[][];
xs: import(".").ChartModel.PlotPoint<T>[][];
sx: import(".").ChartModel.PlotPoint<T>[][];
};
};