export type ChartDataTypes = ChartInternalDataTypes | bigInt.BigInteger; export type ChartInternalDataTypes = number | string | Date; export interface BaseChartDataShape { key: ChartDataTypes; data: T; target?: T; metadata?: any; id?: string; } export type ChartShallowDataShape = BaseChartDataShape; export type ChartNestedDataShape = BaseChartDataShape[] | ChartNestedDataShape[]>; export type ChartDataShape = ChartNestedDataShape | ChartShallowDataShape; export interface ChartInternalNestedDataShape { key: ChartInternalDataTypes; data: ChartInternalShallowDataShape[]; metadata?: any; id?: string; } export interface ChartInternalShallowDataShape { id?: string; key?: ChartInternalDataTypes; value?: ChartInternalDataTypes; target?: ChartInternalDataTypes; metadata?: any; x?: ChartInternalDataTypes; x0: ChartInternalDataTypes; x1?: ChartInternalDataTypes; y: ChartInternalDataTypes; y0?: ChartInternalDataTypes; y1: ChartInternalDataTypes; } export type ChartInternalDataShape = ChartInternalShallowDataShape | ChartInternalNestedDataShape;