摘要: 数据可视化-d3.js 1-6 1. 环境配置 1.1 配置React + TS 这里使用脚手架配置: npx create-react-app react-typescript-demo --typescript 2. 使用D3查询SVG 2.1 d3.select(xxx) d3.select( 阅读全文
posted @ 2020-10-06 15:39 lemon-Xu 阅读(1348) 评论(0) 推荐(0)
摘要: react + d3.js + TS 日轮图 类型优化 1. 结构 interface IDatum { name: string; popularity? number; children?: this[]; } 2. 类型优化 2.1 d3.partiion<>() let root: d3.H 阅读全文
posted @ 2020-10-06 11:10 lemon-Xu 阅读(251) 评论(0) 推荐(0)
摘要: react + d3.js + TS 实现冰柱图 1. 结构 interface IDatum { name: string; children?: this[]; populariy?: number; } 2.1 类型优化 2.1.1 d3.partition<>()() d3.json<IDa 阅读全文
posted @ 2020-10-06 10:28 lemon-Xu 阅读(270) 评论(0) 推荐(0)