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

export default class Pie extends React.Component<PieProps, any> {}