Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Hhiteshk-itis
Last edited Apr 29, 2023
Created on Apr 29, 2023

This visualization displays the relationship between a car's fuel efficiency (mpg) and its horsepower for various vehicle origins, with the size of each circle representing the car's weight. The chart is built using the Vega-Lite API, which generates a specification that is rendered as an SVG. The code registers both Vega and Vega-Lite, uses a `d3.csv` call to load the Auto MPG dataset from the UCI Machine Learning Repository, and customizes axis and font styling for readability.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

MIT Licensed

Similar vizzes