D3 is a collection of modules that are designed to work together; you can use the modules independently, or you can use them together as part of the default build. The source and documentation for each module is available in its repository. Follow the links below to learn more. For changes between major versions, see CHANGES; see also the release notes and the 3.x reference.
D3 uses semantic versioning. The current version is exposed as d3.version.
Array manipulation, ordering, searching, summarizing, etc.
Methods for computing basic summary statistics.
Methods for searching arrays for a specific element.
Methods for transforming arrays and for generating new arrays.
Bin discrete samples into continuous, non-overlapping intervals.
Human-readable reference marks for scales.
Select a one- or two-dimensional region using the mouse or touch.
Color manipulation and color space conversion.
Color ramps and palettes for quantitative, ordinal and categorical scales.
Compute contour polygons using marching squares.
Compute the Voronoi diagram of a set of two-dimensional points.
Separate concerns using named callbacks.
Drag and drop SVG, HTML or Canvas using mouse or touch input.
Parse and format delimiter-separated values, most commonly CSV and TSV.
Easing functions for smooth animation.
Convenience methods on top of the Fetch API.
Force-directed graph layout using velocity Verlet integration.
Format numbers for human consumption.
Geographic projections, shapes and math.
Layout algorithms for visualizing hierarchical data.
Interpolate numbers, colors, strings, arrays, objects, whatever!
Serialize Canvas path commands to SVG.
Geometric operations for two-dimensional polygons.
Two-dimensional recursive spatial subdivision.
Generate random numbers from various distributions.
Encodings that map abstract data to visual representation.
Map a continuous, quantitative domain to a continuous range.
Map a continuous, quantitative domain to a continuous, fixed interpolator.
Map a continuous, quantitative domain to a continuous, fixed interpolator.
Map a continuous, quantitative domain to a discrete range.
Map a discrete domain to a discrete range.
Transform the DOM by selecting elements and joining to data.
Graphical primitives for visualization.
Circular or annular sectors, as in a pie or donut chart.
Compute the necessary angles to represent a tabular dataset as a pie or donut chart.
A spline or polyline, as in a line chart.
An area, defined by a bounding topline and baseline, as in an area chart.
Interpolate between points to produce a continuous shape.
A smooth cubic Bézier curve from a source to a target.
A categorical shape encoding, as in a scatterplot.
Stack shapes, placing one adjacent to another, as in a stacked bar chart.
Parse and format times, inspired by strptime and strftime.
A calculator for humanity’s peculiar conventions of time.
An efficient queue for managing thousands of concurrent animations.
Animated transitions for selections.
Pan and zoom SVG, HTML or Canvas using mouse or touch input.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.