recharts
Version:
React charts
35 lines (34 loc) • 1.51 kB
TypeScript
import { StackOffsetType } from '../util/types';
import { SyncMethod } from '../synchronisation/types';
import { BaseValue } from '../cartesian/Area';
/**
* These are chart options that users can choose - which means they can also
* choose to change them which should trigger a re-render.
*/
export type UpdatableChartOptions = {
accessibilityLayer: boolean;
barCategoryGap: number | string;
barGap: number | string;
barSize: string | number | undefined;
/**
* Useful for debugging which chart is which when synchronising.
* The className is also passed to the root element of the chart but that's done in the JSX, not through Redux.
*/
className: string | undefined;
maxBarSize: number | undefined;
stackOffset: StackOffsetType;
/**
* Charts that share the same syncId will have their Tooltip and Brush synchronised.
*/
syncId: number | string | undefined;
syncMethod: SyncMethod;
baseValue: BaseValue | undefined;
/**
* If false, stacked items will be rendered left to right. If true, stacked items will be rendered right to left.
* (Render direction affects SVG layering, not x position.)
*/
reverseStackOrder: boolean;
};
export declare const initialState: UpdatableChartOptions;
export declare const rootPropsReducer: import("redux").Reducer<UpdatableChartOptions>;
export declare const updateOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdatableChartOptions, "rootProps/updateOptions">;