8
Axes
Quantitative data visualizations often use dots, lines, and shapes to represent values within the context of a domain. Axes provide this context by using lines, tick marks, and labels. Each axis provides context for a single dimension. The Cartesian coordinate system, common in charts, uses two perpendicular axes for a two-dimensional space. Other visualizations may use three or more axes.
Axes are essential in D3 visualizations that plot data points on a line or plane, such as scatter plots, line charts, and bar charts. The d3-axis module provides them as SVG components that can be easily added to an existing visualization, bound to existing data scales, and updated automatically with smooth transitions when the data changes.
In this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access