-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
This chapter provided a general introduction to d3-geo, the D3 library used to build map-based visualizations. It started with a hands-on tutorial about how to render maps in SVG or Canvas using the open geographical data formats GeoJSON and TopoJSON, and apply projections to convert geographic coordinates into screen coordinates. It also explained how to add map context with graticules, circles, and other generated geometries.
The focus then moved to common forms of cartographic visualization in D3, especially thematic maps such as choropleths, dot density maps, and graduated symbol maps, showing how to combine geographic features with scales, colors, and symbol size to represent statistical data. It also introduced cartographic projections and the huge projection library available in D3.
Finally, the chapter focused on details and more advanced tools for working with maps, including projection configuration, clipping, fitting, spherical measurements, and rotation, applying...