UNPKG

ag-charts-community

Version:

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

18 lines (17 loc) 849 B
import { ContinuousScale } from './continuousScale'; import type { ScaleFormatParams, ScaleTickParams } from './scale'; export declare class LogScale extends ContinuousScale<number> { readonly type = "log"; protected defaultClamp: boolean; constructor(d?: number[], r?: number[]); toDomain(d: number): number; base: number; protected transform(x: any): number; protected transformInvert(x: any): number; private readonly log; private readonly pow; niceDomain(_ticks: ScaleTickParams<number>, domain?: number[]): number[]; ticks({ interval, tickCount }: ScaleTickParams<number>, domain?: number[], visibleRange?: [number, number]): number[]; tickFormatter({ specifier }: ScaleFormatParams<number>): (x: number) => string; datumFormatter(params: ScaleFormatParams<number>): (x: number) => string; }