数据基础Data foundations
认识数据类型,学习加载、变换和绑定数据。Load, transform and bind data, starting with data types.
预备知识:Before you start: 基本 JavaScript:数组、对象与函数Basic JavaScript: arrays, objects and functions
从数据到图表:JavaScript + D3.js 实战课程From data to charts: a practical JavaScript + D3.js course
长度让大小的比较更直观。试着切换一种表达。Length makes magnitude comparisons visible. Try another encoding.
教学示例数据Illustrative data · A–F课程地图COURSE MAP
颜色显示学习进度;点击任一小节直接进入。Colors show progress. Click a section to jump in.
认识数据类型,学习加载、变换和绑定数据。Load, transform and bind data, starting with data types.
预备知识:Before you start: 基本 JavaScript:数组、对象与函数Basic JavaScript: arrays, objects and functions
学习分组、树布局和交互,理解图表的生成过程。Learn grouping, tree layouts and interaction.
预备知识:Before you start: 第 1 章:数据类型与数据变换Chapter 1: data types and transformations
学习颜色模型,比较配色,检查图表是否容易辨认。Learn color models, compare palettes and check readability.
预备知识:Before you start: 第 1 章:数据属性与视觉通道Chapter 1: data types and visual channels
学习数据转换、比例尺、曲线和等值线。Learn reshaping, scales, curves and contours.
预备知识:Before you start: 数据变换、视觉通道与基础配色Data transformations, visual channels and basic color
用折线图、日历图和故事线查看时间变化。Explore time with line charts, calendars and storylines.
预备知识:Before you start: 比例尺、基础配色与曲线连接Scales, basic color and curve interpolation
建议按章节顺序学习。标记为“拓展”的小节可在掌握基础后阅读。Follow the chapter order. Return to extension sections after learning the foundations.
先看学习目标,找出这一节要解决的问题。Start with the objective and identify the problem.
按实验任务操作,把观察与概念对应起来。Follow the experiment prompt and connect observations to concepts.
阅读关键代码,完成小练习,把疑问留作复习。Read the code, answer the check and save questions for review.
进度与收藏保存在当前浏览器。换设备或清理浏览器前,可以导出备份。Progress and bookmarks stay in this browser. Export a backup before switching devices or clearing browser data.