上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 转载方式: 手打 原文地址: https://github.com/wangdoc/git-tutorial 转载者: lemon Git - 阮一峰 git是一种源码管理系统(source code managemen。缩写为SCM)。它对当前文件提供版本管理功能,核心思想是对当前文件建立一个对象 阅读全文
posted @ 2020-10-08 17:08 lemon-Xu 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 数据可视化-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 阅读(1247) 评论(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 阅读(236) 评论(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 阅读(251) 评论(0) 推荐(0) 编辑
摘要: react + d3.js + ts 实现树图 报错解决 1. 结构 interface IGamesDatum { name: string; popularity: number; } interface IDatum { name: string; children: this | IGame 阅读全文
posted @ 2020-10-05 21:15 lemon-Xu 阅读(593) 评论(0) 推荐(0) 编辑
摘要: d3.js hierarchy的常见数据结构 1. d3.hierarchy(data, [children]) 根据指定的层级数据构造一个根节点。指定的数据必须是代表根节点的对象,例如: { "name": "Eve", "children": [ { "name": "Cain" }, { "n 阅读全文
posted @ 2020-10-05 20:42 lemon-Xu 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: react + d3.js + TS 堆叠条形图 报错解决 1. 结构 结构请看之前的文章,这里记录部分报错解决的方式。能力受限无法解决方式不会优雅。 2. 报错 2.1 stack生成器报错 var naiveStack = d3.stack().keys(naiveKeys).order(d3. 阅读全文
posted @ 2020-10-04 15:06 lemon-Xu 阅读(331) 评论(0) 推荐(0) 编辑
摘要: reac +d3.js +TS 实现地理图 报错解决 1. 结构 结构请看之前的文章,这里记录部分报错解决的方式。能力受限无法解决d3-tip报错问题。 2. 报错 2.1 Property 'features' does not exis on type 'Feature<Point, GeoJs 阅读全文
posted @ 2020-10-03 16:29 lemon-Xu 阅读(558) 评论(0) 推荐(0) 编辑
摘要: react + TS + d3.js 实现曲线图 报错问题解决 1. 结构 1.1 整体结构 // lemon import React, { useRef, useState, useEffect, useReducer } from "react"; import * as d3 from "d 阅读全文
posted @ 2020-10-02 21:10 lemon-Xu 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 数据可视化-d3.js 7-10 7. Data-Join 本质上是将数据与图元进行绑定。 使用Data-Join可以省去大量 根据数据设置图元属性 的代码量。 对于 动态变化的数据 提供统一的接口。 以数据为中心的可视化操作 根据数据的每个属性自动调整绑定图元的属性。 不再需要手动添加、'修改'、 阅读全文
posted @ 2020-10-01 16:05 lemon-Xu 阅读(280) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页