Car Types Distribution — Pie Chart

Source: CSV hosted on GitHub Gist (Fuel dataset with Type column)

Legend is interactive: hover a legend item to highlight its slice.

Explanation

To plot a quantitative sum instead of counts (e.g., sum of Price by Type), change metric = g => g.length to metric = g => d3.sum(g, d => d.Price).