Skip to main content
100%

Scatter 2

✓ Published0🌍 Public
Mmustafaksyed1@gmail.com
Last edited Mar 9, 2026
Created on Mar 9, 2026
Forked from D3 Starter

This chart combines three encodings to show automotive trends across model years. It plots average MPG and horsepower as colored lines on a shared left axis, while average weight appears as bars using a separate right axis. The visualization aggregates individual vehicle records from the seaborn MPG dataset using `d3.rollups` and `d3.mean`, then renders an SVG with `d3.line`, `d3.scaleBand`, and multiple `d3.axis` components. A text annotation highlights the observed rise in fuel efficiency.

AI-generated description
MIT Licensed

Similar vizzes