fybdp-d3-kg
Version:
Knowledge Graph using React and D3.js
31 lines (30 loc) • 1.23 kB
TypeScript
export declare type ChartDataTypes = ChartInternalDataTypes | bigInt.BigInteger;
export declare type ChartInternalDataTypes = number | string | Date;
export interface BaseChartDataShape<T> {
key: ChartDataTypes;
data: T;
metadata?: any;
id?: string;
}
export declare type ChartNestedDataShape = BaseChartDataShape<ChartShallowDataShape<ChartDataTypes>[]>;
export declare type ChartShallowDataShape<T = ChartDataTypes | [ChartDataTypes, ChartDataTypes]> = BaseChartDataShape<T>;
export declare type ChartDataShape = ChartNestedDataShape | ChartShallowDataShape;
export interface ChartInternalNestedDataShape {
key: ChartInternalDataTypes;
data: ChartInternalShallowDataShape[];
metadata?: any;
id?: string;
}
export interface ChartInternalShallowDataShape {
id?: string;
key?: ChartInternalDataTypes;
value?: ChartInternalDataTypes;
metadata?: any;
x?: ChartInternalDataTypes;
x0: ChartInternalDataTypes;
x1?: ChartInternalDataTypes;
y: ChartInternalDataTypes;
y0?: ChartInternalDataTypes;
y1: ChartInternalDataTypes;
}
export declare type ChartInternalDataShape = ChartInternalShallowDataShape | ChartInternalNestedDataShape;