D3 API 速记笔记 总概要【快速导航】

384 阅读3分钟

D3 API 速记笔记 总概要【快速导航】

D3官方API git地址: https://github.com/d3/d3/blob/main/API.md#color-schemes-d3-scale-chromatic

  1. Arrays (Statistics, Search, Iterables, Sets, Transformations, Histograms, Interning) 数组(统计、搜索、迭代、集合、转换、直方图、中介(内部中介对象))

    1. Array Statistics 统计相关
    2. Array Search 数组查找相关
    3. Array Iterables 类js原生数组相关操作方法
    4. Array Set 集合运算相关方法
    5. Array Transformations 数组转换(生成)相关工具方法
    6. Array Histograms/Array Interning 数组生成直方图相关数据操作方法/数组中介(内部中介对象)
  2. Axes 数轴相关

  3. Brushes 笔刷区域相关

  4. Chords 弦图操作相关

  5. Colors 颜色对象相关

  6. Color Schemes 配色方案

    1. Categorical 几类颜色组
    2. Diverging 发散颜色
    3. Sequential (Single Hue) 有序颜色(单色调)
    4. Sequential (Multi-Hue) 有序颜色(多色调,环形色调)
  7. Contours 轮廊

  8. Voronoi Diagrams 沃罗诺伊图

  9. dispatch 事件指派

  10. Dragging 拖拽

  11. DSV 分隔符分隔值文件

  12. Easings 缓动效果(淡入,淡出等)

  13. Fetches 载入各类文件

  14. Forces 力(有/无导向)图 相关

  15. Format numbers 数字格式转换

  16. Geographies (Paths, Projections, Spherical Math, Spherical Shapes, Streams, Transforms) 地理(路径、投影、球面数学、球面形状、流、变换)

    1. Paths 路径
    2. Projections 投影
    3. spherical 球形相关
    4. streams,transform,clipping 流,变形,剪裁
  17. hierarchies 层次结构

  18. interpolators 插入器

  19. paths svg 路径

  20. polygon 多边形

  21. quadtree 四叉树

  22. random numbers 随机数

  23. Scales (Continuous, Sequential, Diverging, Quantize, Ordinal) 标尺(连续尺、顺序尺、发散尺、量尺、顺序尺

    1. continuous scales 连续尺
    2. Sequential Scales 顺序尺
    3. Diverging Scales 发散尺
    4. Quantize Scales 量尺
    5. ordinal scales 顺序尺
  24. Selections (Selecting, Modifying, Data, Events, Control, Local Variables, Namespaces) 选择器(选择、修改、数据、事件、控制、局部变量、命名空间)

    1. selecting elements 选择元素(元素选择器)
    2. modifying elements 修改选择的元素
    3. joining data 连接数据
    4. handing events & control flow 操作事件 控制流
    5. local variables & namespaces本地变量操作 命名空间
  25. Shapes (Arcs, Pies, Lines, Areas, Curves, Links, Symbols, Stacks) 形状(弧、饼、线、面、曲线、链接、符号、堆叠)

    1. arcs 弧
    2. pies 饼
    3. lines 线
    4. areas 区域
    5. curves 曲线
    6. links 链接
    7. symbols 符号
    8. stacks 栈
  26. time format 时间转换

  27. Time Intervals 时间间隔操作

  28. timer 定时器

  29. transitions 过渡效果

  30. zooming 缩放