UNPKG

452 BTypeScriptView Raw
1import { ScaleLinear, ScalePoint, ScaleTime } from 'd3-scale';
2import { ScaleType } from '../common/types/scale-type.enum';
3export declare function getDomain(values: any[], scaleType: ScaleType, autoScale: boolean, minVal?: number, maxVal?: number): number[];
4export declare function getScale(domain: number[], range: number[], scaleType: ScaleType, roundDomains: boolean): ScaleTime<number, number> | ScaleLinear<number, number> | ScalePoint<string>;