UNPKG

592 BTypeScriptView Raw
1import { ScaleType } from './types/scale-type.enum';
2/**
3 * Based on the data, return an array with unique values.
4 *
5 * @export
6 * @returns array
7 */
8export declare function getUniqueXDomainValues(results: any[]): any[];
9/**
10 * Get the scaleType of enumerable of values.
11 * @returns 'time', 'linear' or 'ordinal'
12 */
13export declare function getScaleType(values: any[], checkDateType?: boolean): ScaleType;
14export declare function getXDomainArray(values: Array<string | number | Date>, xScaleMin?: number, xScaleMax?: number): {
15 domain: any[];
16 xSet: any[];
17 scaleType: string;
18};