UNPKG

942 BTypeScriptView Raw
1import 'react';
2import { HeatmapOptions } from '@antv/g2plot/lib/plots/heatmap';
3import { ColorAttr } from '@antv/g2plot/lib/types/attr';
4import { BasePlotOptions } from '../createPlot';
5import { LengendAPIOptions, TooltipAPIOptions, LabelAPIOptions } from './core/interface';
6export interface CalendarOptions extends HeatmapOptions, BasePlotOptions {
7 /** 图例 */
8 legend?: LengendAPIOptions;
9 /** 图表提示框 */
10 tooltip?: TooltipAPIOptions;
11 /** 数据标注label */
12 label?: LabelAPIOptions;
13 dateField?: string;
14 /** valueField 是 g2@1.0的属性,即将废弃,请使用colorField替代 */
15 valueField?: string;
16 dateRange?: string[];
17 /** colors 是 g2Plot@1.0 的属性,即将废弃, 请使用 color 属性替代 */
18 colors?: ColorAttr;
19}
20declare const _default: import("react").ForwardRefExoticComponent<CalendarOptions & import("react").RefAttributes<any>>;
21export default _default;