zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
25 lines (24 loc) • 916 B
TypeScript
import { AxisOpt } from '../types/index.js';
import { BaseComponent } from './base.js';
import { axisAutoSize } from './uplot-lib/index.js';
export declare class Axis extends BaseComponent<Record<'x' | 'y', AxisOpt>> {
name: string;
render(): void;
update(): void;
getOptions(): {
axes: ({
show: boolean;
values: (string | number)[][] | ((_u: import("uplot"), splits: string[]) => string[]);
} | {
size?: undefined;
show: boolean;
values: (u: import("uplot"), splits: string[], axisIdx: number, tickSpace: number, tickIncr: number) => string[];
} | {
size: typeof axisAutoSize;
show: boolean;
values: (u: import("uplot"), splits: string[], axisIdx: number, tickSpace: number, tickIncr: number) => string[];
})[];
};
private getXOptions;
private getYOptions;
}