11-Vega-Lite API Template
✓ Published0🌍 Public
This visualization displays auto-mpg data from the UCI Machine Learning Repository as a scatter plot of engine displacement against horsepower, with circle size encoding vehicle weight, color encoding origin, and tooltips showing model names. It uses the vega-lite-api JavaScript API to construct the Vega-Lite specification, which is rendered with Vega and Vega-Lite libraries. The code loads CSV data via d3.csv, applies a custom configuration for axis styling and font sizes, and fits the chart to the full browser window.
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