block by emeeks 9e4f6ef66694db874b40

Ch. 10, Figure 12 - D3.js in Action

Full Screen

This is the code for Chapter 10, Figure 12 from D3.js in Action that demonstrates the d3.svg.legend() component developed during the course of this chapter. The legend also has hover behavior that highlights elements colored by the same region in the legend.

index.html