Dan B Vega-Lite API Template
✓ Published0🌍 Public
This visualization displays a scatter plot of auto MPG data, mapping origin to the x-axis and horsepower to the y-axis, with circular marks and tooltips showing car names. The visualization is built using the Vega-Lite API, which registers with Vega and Vega-Lite libraries to render SVG output. Data is loaded asynchronously from a CSV file using d3.csv, sourced from the UCI Machine Learning Repository’s Auto MPG dataset. The code configures axis appearance and styling through a custom config object, and the chart resizes to fit the window dimensions.
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