Skip to main content
100%

Gist 449c2fd0db4f7c31adc4c7cd995fece0

✓ Published0🌍 Public
AAlainRo
Last edited Jul 5, 2018
Created on Jul 5, 2018

The visualization maps car models from the classic “cars.json” dataset, plotting each vehicle by its weight and horsepower. It uses a D3 force-directed layout, likely with `d3.forceSimulation`, to position points without overlap, while color and size encode the number of cylinders and miles per gallon. The rendering relies on SVG paths generated by `d3.geoPath` for the background map of the United States, highlighting each car’s origin region. The data comes directly from the provided JSON file, with missing values for miles per gallon handled as `null`, and the chart emphasizes broad trends between engine displacement, fuel efficiency, and vehicle class.

AI-generated description

Similar vizzes