ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
13 lines (12 loc) • 426 B
TypeScript
export interface Scale<D, R> {
domain: D[];
range: R[];
convert(value: D, clamper?: (values: D[]) => (x: D) => D): R;
invert?(value: R): D;
ticks?(count: any): D[];
tickFormat?(count: any, specifier?: any): (x: any) => string;
nice?(count?: number): void;
bandwidth?: number;
}
export declare type Reinterpolator<T> = (t: number) => T;
export declare type Deinterpolator<T> = (v: T) => number;