Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
FFiewor John
Last edited Apr 26, 2022
Created on Apr 26, 2022

This visualization displays relationships among automobile characteristics using the Auto MPG dataset from the UCI Machine Learning Repository. Scatter plots show miles per gallon against horsepower, with points colored by country of origin and sized according to vehicle weight. The code builds the chart programmatically using the Vega-Lite API, registering Vega and Vega-Lite with a custom configuration that removes axis domains and adjusts font styling. Data is loaded via D3's CSV reader, and rendering produces an SVG output with a tooltip handler for interactive exploration.

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