AntV-G6 -- 将G6图表应用到项目中

发布于:2024-01-06 ⋅ 阅读:(213) ⋅ 点赞:(0)
试读部分
1. 效果图 2. 安装依赖 npm install --save @antv/g6 3. 代码 import { useEffect } from '@alipay/bigfish/react'; import G6 from '@antv/g6'; const data = { id: 'root', label: '利息收入', subLabel: '3,283.456', ratio: 3, children: [ { id: 'child-a', label: '平均利息', subLabel: '9%', ratio: 1, increase: true, }, { id: 'child-b', label: '贷款余额', subLabel: '1,789,567', ratio: 23, increase: true, children: [ { id: 'child-b-a', label: '投放金额', subLabel: '2,385,124', ratio: 17, increase: true, }, { id: 'child-b-b', label: '还款金额', subLabel: '595,557', ratio: 12, increase: true, }, ], }, { ……
本文为 VIP 文章,已展示部分内容,开通 VIP 后查看全文

觉得这篇文章有帮助?

点个赞,或赞赏支持作者持续创作

微信公众号

今日签到

点亮在社区的每一天
去签到