import {
  PieChart, Pie, ResponsiveContainer, Tooltip
} from 'recharts';
import * as React from 'react';


export class Chart extends React.Component<any, any> {
  constructor(props: any) {
    super(props);
  }
  public render() {
    const data = this.props.data;
    return (
      <ResponsiveContainer width="100%" height={800}>
        <PieChart>
          <Pie data={data} dataKey="age" cx={500} cy={200} outerRadius={80} fill="#82ca9d" />
          <Tooltip />
        </PieChart>
      </ResponsiveContainer>
    )
  }
}
