Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars0🌍 Public
JJanna Uutela
Last edited Oct 5, 2021
Created on Oct 5, 2021

This interactive scatter plot visualizes the relationship between fuel efficiency (mpg) and horsepower for a collection of automobiles, with each point’s color indicating the country of origin and its size representing vehicle weight. It was built using the Vega-Lite API, which compiles specifications into a rendered Vega visualization. The code reads the Auto MPG dataset from a CSV via `d3.csv`, then dynamically sets the chart’s width and height to fill the browser window. The visualization includes a tooltip handler and custom styling for axis labels and titles.

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.

Comments

Sign in to join the discussion.

MIT Licensed