import React from 'react';
import { BarChart } from '../index';

export default () => {
  const category = ['周一', '周二', '周三', '周四', '周五', '周六', '周日'];
  const dataSource = [
    {
      name: '用水量',
      unit: 'm³',
      data: [120, 200, 150, 80, 70, 110, 130],
    },
    {
      name: '供水量',
      unit: 'm³',
      data: [120, 200, 150, 80, 70, 110, 130],
    },
  ];

  return (
    <div style={{ height: 300 }}>
      <BarChart category={category} dataSource={dataSource} />
    </div>
  );
};
