import { ComposedChart } from 'recharts'; import { ComponentProps, ComponentType, FC, PropsWithChildren, ReactNode } from 'react'; import { CartesianChartLayout, ChartDataValue, DataKeyProp } from './types'; /** @deprecated Use a ReactNode instead */ export interface CartesianChartEmptyViewProps { data?: ComponentProps["data"]; } export interface CartesianChartProps extends Pick, "className" | "syncId" | "syncMethod">, PropsWithChildren { /** The data points rendered by the chart. */ data?: TData[]; /** The height of the chart. */ height?: string; /** * The orientation of the axes and graphical items. `"horizontal"` puts the * category axis on the x-axis — bars grow upwards. `"vertical"` puts it on * the y-axis — bars grow to the side. `XAxis` and `YAxis` follow the layout * on their own; only the `dataKey` moves to whichever axis is the categorical * one. * * @default "horizontal" */ layout?: CartesianChartLayout; /** View that is provided when data is empty/undefined */ emptyView?: ReactNode; /** * Allow the height controlling container to set flex-grow: 1. Can only be * used in combination with `height` */ flexGrow?: boolean; } /** @flr-generate all */ export declare const CartesianChart: FC; export declare const typedCartesianChart: = ChartDataValue, XAxisDataKey extends DataKeyProp = DataKeyProp>() => { Chart: ComponentType>; Area: ComponentType>; Bar: ComponentType>; XAxis: >(props: import('./components/XAxis').XAxisProps) => ReactNode; YAxis: >(props: import('./components/YAxis').YAxisProps) => ReactNode; Grid: ComponentType; Legend: ComponentType; Tooltip: ComponentType>; Line: ComponentType>; }; export default CartesianChart;