This example shows how to use d3 to create uniformly scaled geographic feature thumbnails. There are two interesting features of SVG at play here:
- The viewBox attribute is used to "zoom in" to the individual states.
- The use element is used to redraw a common background states path into each thumbnail, reducing DOM overhead.
The other nice thing here is that we didn't have to define the SVG elements'