index.d.ts 499 Bytes
Newer Older
陈小聪's avatar
陈小聪 committed
1
import React from 'react';
2 3 4 5

// g2已经更新到3.0
// 不带的写了

jim's avatar
jim committed
6
export interface IAxis {
7 8 9 10 11 12 13 14
  title: any;
  line: any;
  gridAlign: any;
  labels: any;
  tickLine: any;
  grid: any;
}

jim's avatar
jim committed
15
export interface IMiniAreaProps {
16 17 18 19 20
  color?: string;
  height: number;
  borderColor?: string;
  line?: boolean;
  animate?: boolean;
jim's avatar
jim committed
21 22
  xAxis?: IAxis;
  yAxis?: IAxis;
23
  data: Array<{
iugo's avatar
iugo committed
24
    x: number | string;
25 26 27 28
    y: number;
  }>;
}

jim's avatar
jim committed
29
export default class MiniArea extends React.Component<IMiniAreaProps, any> {}