recharts
Version:
React charts
45 lines (44 loc) • 1.35 kB
TypeScript
import { ReactElement } from 'react';
import { BaseAxisProps, ChartCoordinate, ChartOffset, DataKey, LayoutType, Margin, StackOffsetType, TickItem } from '../util/types';
import { AxisStackGroups } from '../util/ChartUtils';
export type AxisMap = {
[axisId: string]: BaseAxisProps;
};
export interface CategoricalChartState {
chartX?: number;
chartY?: number;
dataStartIndex?: number;
dataEndIndex?: number;
activeTooltipIndex?: number;
isTooltipActive?: boolean;
updateId?: number;
xAxisMap?: AxisMap;
yAxisMap?: AxisMap;
zAxisMap?: AxisMap;
orderedTooltipTicks?: any;
tooltipAxis?: BaseAxisProps;
tooltipTicks?: TickItem[];
graphicalItems?: ReadonlyArray<ReactElement>;
activeCoordinate?: ChartCoordinate;
offset?: ChartOffset;
angleAxisMap?: any;
radiusAxisMap?: any;
formattedGraphicalItems?: any;
activePayload?: any[];
tooltipAxisBandSize?: number;
activeItem?: any;
activeLabel?: string;
activeIndex?: number;
xValue?: number;
yValue?: number;
legendBBox?: DOMRect | null;
prevDataKey?: DataKey<any>;
prevData?: any[];
prevWidth?: number;
prevHeight?: number;
prevLayout?: LayoutType;
prevStackOffset?: StackOffsetType;
prevMargin?: Margin;
prevChildren?: any;
stackGroups?: AxisStackGroups;
}