mirror of https://github.com/chillzhuang/Sword
22 lines
571 B
TypeScript
22 lines
571 B
TypeScript
import * as React from 'react';
|
|
export interface IPieProps {
|
|
animate?: boolean;
|
|
color?: string;
|
|
colors?: string[];
|
|
height: number;
|
|
hasLegend?: boolean;
|
|
padding?: [number, number, number, number];
|
|
percent?: number;
|
|
data?: Array<{
|
|
x: string | string;
|
|
y: number;
|
|
}>;
|
|
total?: React.ReactNode | number | (() => React.ReactNode | number);
|
|
title?: React.ReactNode;
|
|
tooltip?: boolean;
|
|
valueFormat?: (value: string) => string | React.ReactNode;
|
|
subTitle?: React.ReactNode;
|
|
}
|
|
|
|
export default class Pie extends React.Component<IPieProps, any> {}
|