Skip to main content
100%

Example Zoomable #3

✓ Published0🌍 Public
Aamnicpo
Last edited Feb 28, 2022
Created on Feb 28, 2022

This example visualizes automobile data from the UCI Machine Learning Repository’s Auto MPG dataset, plotting miles per gallon against horsepower as a scatter plot. Each point’s size encodes vehicle weight, while its color represents the region of origin, and hovering reveals the model name. The visualization is built with the vega-lite-api library, which compiles specifications into Vega-Lite and renders them via Vega, with d3.csv used to load the data. The chart is configured for full-window sizing and uses a custom dark theme for improved 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