-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
In this chapter, you learned all you need to know about axes in D3. You used the four generator functions from the d3-axis module to create one-dimensional axes in different positions, applied configuration methods to adjust ticks, lines, and text, and learned about several styling techniques. You also learned how to change the scale attached to an axis and how to update ticks when the scale changes.
Many charts use more than a single dimension. To provide context for these charts, we combined individual axes to produce Cartesian and polar coordinate systems, configuring labels for each axis, displaying multiple quadrants, and adding grids for extra precision.
Finally, you learned how to attach an axis or a set of axes to a data visualization and use a simple module that contains functions for Cartesian and radial axes.
Axes are tightly coupled with scales: you can’t create an axis generator without a scale. This chapter only used simple linear scales, since...