mini-pie.md 438 Bytes
Newer Older
nikogu's avatar
nikogu committed
1 2 3 4 5
---
order: 6
title: 迷你饼状图
---

nikogu's avatar
nikogu committed
6 7
通过简化 `Pie` 属性的设置,可以快速的实现极简的饼状图,可配合 `ChartCard` 组合展现更多业务场景。

nikogu's avatar
nikogu committed
8 9 10 11
````jsx
import { Pie } from 'ant-design-pro/lib/Charts';

ReactDOM.render(
afc163's avatar
afc163 committed
12 13 14 15 16 17 18 19
  <div style={{ width: 200, display: 'inline-block' }}>
    <Pie
      percent={28}
      subTitle="中式快餐"
      total="28%"
      height={130}
    />
  </div>
nikogu's avatar
nikogu committed
20 21
, mountNode);
````