Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Pparshwa30122002@gmail.com
Last edited Aug 14, 2024
Created on Aug 14, 2024

This visualization displays a scatter plot of the Auto MPG dataset, showing the relationship between miles per gallon and horsepower. Each bar encodes weight through size and origin via color, with tooltips revealing car names. The visualization is built using the Vega-Lite API, which registers Vega and Vega-Lite with a custom tooltip handler. Data is loaded asynchronously via d3.csv, and the chart dynamically sizes to fit the window. The code also applies a custom config to adjust axis styling and label fonts 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