index.d.ts 480 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import React from "react";
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;
  title?: string | React.ReactNode;
  tooltip?: boolean;
  valueFormat?: (value: string) => string;
  subTitle?: string | React.ReactNode;
}

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