import { NoDataProps } from "./NoData.mjs"; import { IntervalType, LabelFormatter, ValueFormatter } from "../types/charts.mjs"; import BaseAnimationTimingProps from "./BaseAnimationTimingProps.mjs"; import { CustomTooltipProps } from "./CustomTooltipProps.mjs"; import { ComponentType, HTMLAttributes } from "react"; import { AxisDomain } from "recharts/types/util/types"; //#region src/common/BaseChartProps.d.ts type FixedProps = { categoryClicked: string; eventType: 'dot' | 'category' | 'bar' | 'slice' | 'bubble'; }; type BaseEventProps = FixedProps & { [key: string]: number | string; }; export type EventProps = BaseEventProps | null | undefined; interface BaseChartProps extends BaseAnimationTimingProps, HTMLAttributes { allowDecimals?: boolean; autoMinValue?: boolean; categories: string[]; colors?: string[]; customCategories?: { [key: string]: string; }; customTooltip?: ComponentType; data: any[]; enableLegendSlider?: boolean; height?: string | number; index: string; intervalType?: IntervalType; loading?: boolean; maxValue?: number; minValue?: number; noDataText?: NoDataProps['noDataText']; onValueChange?: (value: EventProps) => void; rotateLabelX?: { angle: number; verticalShift?: number; xAxisHeight?: number; }; showGridLines?: boolean; showLegend?: boolean; showTooltip?: boolean; showXAxis?: boolean; showYAxis?: boolean; startEndOnly?: boolean; tickGap?: number; valueFormatter?: ValueFormatter; width?: string | number; xAxisLabel?: string; xAxisLabelFormatter?: LabelFormatter; yAxisAlign?: 'left' | 'right'; /** * Forward to recharts `YAxis.domain`. When set, overrides `autoMinValue` / `minValue` / `maxValue`. */ yAxisDomain?: AxisDomain; yAxisLabel?: string; yAxisWidth?: number; } //#endregion export { BaseChartProps as default }; //# sourceMappingURL=BaseChartProps.d.mts.map