UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

37 lines (36 loc) 974 B
import { ScaleOption } from '../types/index.js'; import { BaseComponent } from './base.js'; import uPlot from 'uplot'; export declare class Scale extends BaseComponent<Record<'x' | 'y', ScaleOption>> { name: string; private get strategy(); render(): void; update(): void; getOptions(): { scales: { x: { min: number; max: number; } | { min?: undefined; max: number; } | { min: number; max?: undefined; } | { min?: undefined; max?: undefined; }; y: { auto: boolean; range: (_u: uPlot, dataMin: number, dataMax: number) => number[]; }; }; }; setScale(field: 'x' | 'y', limits: { min?: number; max?: number; }): void; private getXOptions; private getYOptions; }