@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
49 lines • 2.03 kB
TypeScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { LegacyRef } from 'react';
import { CartesianGridProps, LabelProps, ReferenceLine, ResponsiveContainerProps, ScatterProps, TooltipProps, ZAxisProps } from 'recharts';
import { Props as ReferenceLinePropsImport } from 'recharts/types/cartesian/ReferenceLine';
import { CategoricalChartProps } from 'recharts/types/chart/generateCategoricalChart';
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
import { ScatterPlotData } from "../../types";
import { CustomXAxisProps, CustomYAxisProps, IBuildDataOptions, IZoomOptions } from './types';
type ReferenceLineProps = ReferenceLinePropsImport & {
ref?: LegacyRef<ReferenceLine>;
};
export interface ScatterPlotProps {
averageLineXLabelUnit?: string;
buildDataOptions?: IBuildDataOptions;
cartesianGridProps?: CartesianGridProps;
chartProps?: CategoricalChartProps;
children?: React.ReactElement<unknown>;
color?: string;
CustomTooltipContent?: React.ElementType;
data: Array<ScatterPlotData>;
height?: number;
hideSummary?: boolean;
idSubstring?: string;
responsiveContainerProps?: ResponsiveContainerProps;
scatterLabelColor?: string;
scatterProps?: ScatterProps;
showAverageLine?: boolean;
tooltipProps?: TooltipProps<ValueType, NameType>;
xAverageLineLabelProps?: LabelProps;
xAverageLineProps?: ReferenceLineProps;
xAxisProps?: CustomXAxisProps;
xLabelProps?: LabelProps;
xLabelValue?: string;
yAverageLineLabelProps?: LabelProps;
yAverageLineProps?: ReferenceLineProps;
yAxisProps?: CustomYAxisProps;
yLabelProps?: LabelProps;
yLabelValue?: string;
zAxisProps?: ZAxisProps;
zoomOptions?: IZoomOptions;
}
export declare const ScatterPlot: React.FC<ScatterPlotProps>;
export default ScatterPlot;
//# sourceMappingURL=index.d.ts.map