Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter 2

Public visualization

Viewing a saved revision (read-only)

e85da3a669c6490d86128ae44e956c37

Scatter 2

0 stars0🌍 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