🌍 Public
Viewing a saved revision (read-only)
9a5b7a23798e4ec981f4ecb8397a56e2
Vega-Lite API Template
This visualization displays the relationship between a car's origin and its horsepower using a circle scatter plot. It is built with the Vega-Lite API, which constructs a declarative specification that is rendered to SVG. The visualization fetches auto-mpg data from a CSV file using d3.csv, defines circle marks with custom opacity and size, and maps origin to the x-axis and horsepower to the y-axis. The API registers with Vega-Lite and Vega, and includes an interactive tooltip displaying the car's name.
AI-generated descriptionA visualization constructed using the vega-lite-api.