-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
Creating maps is one of D3’s most powerful features. It provides one of the best toolsets for web-based cartography. These features include a GeoJSON parser and shape generator that makes it straightforward to quickly draw complex maps, a huge collection of over 100 projection algorithms, and a complete API for manipulating spatial coordinates, measuring, and converting between pixel coordinate systems, latitudes and longitudes, and Euler rotation vectors.
Maps created with D3 are vector-based, rendered in SVG or Canvas. The main tools are provided in the d3-geo module, which is included in the default D3 distribution. The goal of this chapter is to provide a comprehensive introduction to the most important features in this library.
This chapter covers everything you need to start creating interactive web-based maps with D3. It starts with an introduction of the d3-geo library and how to quickly render a map using GeoJSON and TopoJSON datasets...