import { LabelCallback } from '@antv/g2/lib/interface';
import { IChartProps } from 'bizcharts/es/interface';
import { ITooltip } from 'bizcharts/lib/components/Tooltip';

export type ChartProps = {
  axis: {
    xName: string;
    xAlias?: string;
    yName: string;
    yAlias?: string;
  };
  height?: string | number;

  /** document width*height*reloadData */
  calcRefresh?: [number | undefined, number | undefined];

  label?: [string, LabelCallback];

  padding?: [number, number, number, number]
}
  & Pick<IChartProps, 'data'>
  & Pick<ITooltip, 'customContent'>
