/// import { Color, ValueFormatter, IntervalType } from "../../../lib"; import type BaseAnimationTimingProps from "./BaseAnimationTimingProps"; import { CustomTooltipProps } from "./CustomTooltipProps"; type FixedProps = { eventType: "dot" | "category" | "bar" | "slice" | "bubble"; categoryClicked: string; }; type BaseEventProps = FixedProps & { [key: string]: number | string; }; export type EventProps = BaseEventProps | null | undefined; interface BaseChartProps extends BaseAnimationTimingProps, React.HTMLAttributes { data: any[]; categories: string[]; index: string; colors?: (Color | string)[]; valueFormatter?: ValueFormatter; startEndOnly?: boolean; showXAxis?: boolean; showYAxis?: boolean; yAxisWidth?: number; intervalType?: IntervalType; showTooltip?: boolean; showLegend?: boolean; showGridLines?: boolean; autoMinValue?: boolean; minValue?: number; maxValue?: number; allowDecimals?: boolean; noDataText?: string; onValueChange?: (value: EventProps) => void; enableLegendSlider?: boolean; padding?: { left?: number; right?: number; }; customTooltip?: React.ComponentType; rotateLabelX?: { angle: number; verticalShift?: number; xAxisHeight?: number; }; tickGap?: number; xAxisLabel?: string; yAxisLabel?: string; } export default BaseChartProps;