🌍 Public
Viewing a saved revision (read-only)
68a4573d6838470295587f12aff00cae
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.