D3 常用模块列表
D3 是由相互协同工作的模块集合构成的,在使用 D3 时可以单独使用其中某些模块(只导入指定模块),也可以使用默认构建的全部功能。
每个模块都提供相应的 API 接口以便调用,具体源码和使用方法参考官方文档。
详细模块列表如下:
- Arrays (Statistics, Search, Iterables, Sets, Transformations, Histograms)
- Axes
- Brushes
- Chords
- Colors
- Color Schemes
- Contours
- Voronoi Diagrams
- Dispatches
- Dragging
- Delimiter-Separated Values
- Easings
- Fetches
- Forces
- Number Formats
- Geographies (Paths, Projections, Spherical Math, Spherical Shapes, Streams, Transforms)
- Hierarchies
- Interpolators
- Paths
- Polygons
- Quadtrees
- Random Numbers
- Scales (Continuous, Sequential, Diverging, Quantize, Ordinal)
- Selections (Selecting, Modifying, Data, Events, Control, Local Variables, Namespaces)
- Shapes (Arcs, Pies, Lines, Areas, Curves, Links, Symbols, Stacks)
- Time Formats
- Time Intervals
- Timers
- Transitions
- Zooming