ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
21 lines (20 loc) • 984 B
TypeScript
import type { NormalisedLegendOptions, NormalisedSelectionOptions, NormalisedZoomOptions, ZoomState } from 'ag-charts-core';
import type { AgActiveItemState, AgChartOptions } from 'ag-charts-types';
import type { HighlightNodeDatum } from '../core/eventsHub';
import type { DataSelectionState } from './data/dataSelectionState';
import type { CategoryLegendDatum } from './legend/legendDatum';
export type ResolvedChartOptions = Omit<AgChartOptions, 'legend' | 'selection' | 'zoom'> & {
legend: NormalisedLegendOptions;
selection: NormalisedSelectionOptions | undefined;
zoom: NormalisedZoomOptions;
};
export interface ChartState {
options: ResolvedChartOptions;
activeItem: AgActiveItemState | undefined;
highlight: HighlightNodeDatum | undefined;
legendData: Record<string, CategoryLegendDatum[]>;
legendVisible: boolean;
zoom: ZoomState | undefined;
initialZoom: ZoomState | undefined;
selectionState: DataSelectionState | undefined;
}