When passing the .id( ) method an array instead of a single key, the Line Chart visualization will group lines based on the keys (and order) you pass it in the array.
The Y values for the lines are averaged, by default. This aggregation can be changed using the .aggs( ) method.
When clicking on a grouped line, the visusalization will automatically zoom into that group, showing the items within it. This feature can be toggled using the .zoom( ) method.
Featured on D3plus.org