🌍 Public
Viewing a saved revision (read-only)
751936248c8b45939af3a440de2b2876
Fork of Vega-Lite API Template
This visualization uses the Vega-Lite API to create an interactive scatter plot of auto-mpg data, displaying vehicle weight against horsepower as colored and sized circles. The plot encodes weight on the x-axis and color scale, with mpg controlling circle size and opacity for readability. The code loads data from a CSV using d3.csv, then renders the chart as SVG via Vega-Lite’s API in index.js. A custom config adjusts axis styles and removes domain lines, while tooltips reveal car model names on hover.
AI-generated descriptionA visualization constructed using the vega-lite-api.