import { TooltipOptions } from './tooltip'; import { TitleOptions } from './title'; import { XAxisOptions } from './x-axis'; import { YAxisOptions } from './y-axis'; import { ColorAxisOptions } from './color-axis'; import { LegendOptions } from './legend'; import { TimeOptions } from './time'; import { UnitOptions } from './unit'; import { EventsOptions } from './events'; import { ZoomTypeOptions } from './zoom-type'; export declare type ChartOptions = { /** * An explicit height for the chart. * If a number, the height is given in pixels. * If given a percentage string (for example '56%'), the height is given as the percentage of the actual chart width. * This allows for preserving the aspect ratio across responsive sizes. * * By default (when null) the height is calculated from the offset height of the containing element, * or 400 pixels if the containing element's height is 0. * * Defaults to null. */ height?: number | string; colors?: string[]; /** * 最大保留小数位数,tooltip 和 y 轴会用此精度 * * value 大于此精度会用此精度,小于此精度会用 value 原本的精度 * @example * * 当 `decimals: 2` 时,3.333 会显示为 3.33,3.3 会显示为 3.3 * * Defaults to 0 */ decimals?: number | [number, number]; time?: TimeOptions; tooltip?: TooltipOptions; title?: TitleOptions; legend?: LegendOptions; xAxis?: XAxisOptions; yAxis?: YAxisOptions | [YAxisOptions, YAxisOptions]; colorAxis?: ColorAxisOptions; /** * 单位 * * 阶梯单位 * @example * ```json * { * "unit": [ * { * "name": "B", * "threshold": 1 * } * { * "name": "KB", * "threshold": 1024 * } * ] * } * ``` * 常量单位,此单位会固定追加到 value 后 * ```json * { * "unit": " 人" * } * ``` */ unit?: UnitOptions | [UnitOptions, UnitOptions]; /** * 沿着哪个坐标轴缩放 * * pie chart 没有坐标轴,不支持此选项 */ zoomType?: ZoomTypeOptions; events?: EventsOptions; /** * The navigator is a small series below the main series, * displaying a view of the entire data set. It provides tools to zoom in * and out on parts of the data as well as panning across the dataset. * * @default false * @supported area,areaspline,line,spline */ navigator?: boolean; }; export * from './tooltip'; export * from './title'; export * from './x-axis'; export * from './y-axis'; export * from './legend'; export * from './color-axis'; export * from './time'; export * from './unit'; export * from './events'; export * from './zoom-type'; export * from './lang';