index.d.ts 485 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
import React from "react";

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

export interface Axis {
  title: any;
  line: any;
  gridAlign: any;
  labels: any;
  tickLine: any;
  grid: any;
}

export interface MiniAreaProps {
  color?: string;
  height: number;
  borderColor?: string;
  line?: boolean;
  animate?: boolean;
  xAxis?: Axis;
  yAxis?: Axis;
  data: Array<{
    x: number;
    y: number;
  }>;
}

export default class MiniArea extends React.Component<MiniAreaProps, any> {}