🌍 Public
Viewing a saved revision (read-only)
8c4b50a33bec471ea3aa086d3a2b8fd9
Fork of Vega-Lite API Template
This example builds a scatter plot of automobile data, mapping weight and horsepower along the axes and encoding the vehicle’s country of origin by color, with point size also tied to weight. It uses the Vega-Lite API (via `vl.markCircle`) to declaratively specify the visualization, which is then rendered to SVG. The underlying data is fetched as CSV using `d3.csv` from a GitHub gist, and interactivity (like tooltips) is added through the Vega Tooltip `Handler`. Custom styling is applied through a shared config object.
AI-generated descriptionA visualization constructed using the vega-lite-api.