瀏覽代碼

fe-18 完成饼状图

master
Chunxian Zhang 2 年之前
父節點
當前提交
4a5bdc0c24
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. +15
    -0
      lazy-timer-fe/src/pages/Charts/Pie.jsx

+ 15
- 0
lazy-timer-fe/src/pages/Charts/Pie.jsx 查看文件

@ -0,0 +1,15 @@
import React from 'react';
import { pieChartData } from '../../data/dummy';
import { ChartsHeader, Pie as PieChart } from '../../components';
const Pie = () => (
<div className="m-4 md:m-10 mt-24 p-10 bg-white dark:bg-secondary-dark-bg rounded-3xl">
<ChartsHeader category="Pie" title="Project Cost Breakdown" />
<div className="w-full">
<PieChart id="chart-pie" data={pieChartData} legendVisiblity height="full" />
</div>
</div>
);
export default Pie;

Loading…
取消
儲存