Sometimes, data may already have inherit color values that you may wish to use.
In this example, we pass an attribute list to .attrs( ) and tell the .color( ) method to use the "hex" key for the color value. Attribute lists are beneficial when you have attributal data that matches to multiple data points, in this case each year's value has the same color.
Additionally, when a custom Color Parameters is defined, a Legend will display that shows each color group.
Featured on D3plus.org