@alicloud/cloud-charts
Version:

15 lines (14 loc) • 476 B
TypeScript
import { ScaleConfig } from '@antv/scale/esm/types';
/**
* 计算 time 的 ticks,对 month, year 进行 pretty 处理
* @param cfg 度量的配置项
* @returns 计算后的 ticks
*/
export declare function timePretty(cfg: ScaleConfig): number[];
/**
* 计算分类 ticks
* @param cfg 度量的配置项
* @returns 计算后的 ticks
*/
export default function calculateCatTicks(cfg: ScaleConfig): any[];
export declare function timeCat(cfg: ScaleConfig): number[];