-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
This chapter explored most of the functions available in the d3-shape module, which provides the tools used to create classic line and area charts, radial charts, and preconfigured symbols that can be used to represent points in these charts.
A shape generator function is used to generate SVG path strings, which can draw any geometrical shape. In this chapter, you learned how to configure line and area functions that convert a dataset into a path string that renders a line or an area, in Cartesian or polar coordinates.
This chapter also introduced the d3.symbol() function, which generates an SVG path string to render any shape. D3 comes with several preconfigured shapes that can be used as icons to identify categories in a data visualization, and you can also create your own.
In the next chapter, we will continue exploring the d3-shape module and focus on the layout generators that prepare data for pies and stacked charts. We will use the d3.arc() shape generator to...