index.d.ts 550 Bytes
Newer Older
jim's avatar
jim committed
1
import * as React from 'react';
jim's avatar
jim committed
2
export interface IPieProps {
3 4 5 6
  animate?: boolean;
  color?: string;
  height: number;
  hasLegend?: boolean;
niko's avatar
niko committed
7
  padding?: [number, number, number, number];
8 9
  percent?: number;
  data?: Array<{
jim's avatar
jim committed
10
    x: string | string;
11 12
    y: number;
  }>;
13
  total?: React.ReactNode | number | (() => React.ReactNode | number);
陈帅's avatar
陈帅 committed
14
  title?: React.ReactNode;
15
  tooltip?: boolean;
niko's avatar
niko committed
16
  valueFormat?: (value: string) => string | React.ReactNode;
陈帅's avatar
陈帅 committed
17
  subTitle?: React.ReactNode;
18 19
}

jim's avatar
jim committed
20
export default class Pie extends React.Component<IPieProps, any> {}