@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.
19 lines • 788 B
TypeScript
/**
* Scaling functions for data transformation
* Maps data values to visual coordinates
*/
import type { Domain, Range, Scale } from './types';
/**
* Creates a linear scale function that maps values from domain to range
*
* @param domain - Input range [min, max] of values to be scaled
* @param range - Output range [min, max] that domain values will be mapped to
* @returns A function that performs the linear scaling transformation
*/
export declare const scaleLinear: (domain: Domain, range: Range) => Scale;
/**
* Standalone ticks function to generate an array of uniformly spaced numbers.
* This is needed because your scaleLinear method doesn't provide it.
*/
export declare const ticks: (domain: Domain, count: number) => number[];
//# sourceMappingURL=scales.d.ts.map