Fork of Vega-Lite API Template
✓ Published0🌍 Public
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 descriptionA 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