UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

20 lines (19 loc) 883 B
import type { ScaleTickParams } from 'ag-charts-core'; import type { AgNumericValue } from 'ag-charts-types'; import { ContinuousScale } from './continuousScale'; /** * Maps continuous domain to a continuous range. */ export declare class LinearScale extends ContinuousScale<AgNumericValue> { static is(value: unknown): value is LinearScale; protected static getTickStep(start: number, stop: number, ticks: ScaleTickParams<number>): number; readonly type = "number"; constructor(); toDomain(d: number): AgNumericValue; ticks({ interval, tickCount, minTickCount, maxTickCount }: ScaleTickParams<number>, domain?: AgNumericValue[], visibleRange?: [number, number]): { ticks: AgNumericValue[]; count: number; firstTickIndex?: number; }; niceDomain(ticks: ScaleTickParams<number>, domain?: AgNumericValue[]): AgNumericValue[]; }