🌍 Public
Viewing a saved revision (read-only)
6bfe7962d42f42648aa1299ab8d241a4
Vega-Lite API Template
This example visualizes automotive data from an auto-mpg CSV dataset, plotting engine weight against horsepower with circles colored by origin and sized by miles per gallon. The code constructs the visualization using the Vega-Lite API, registering it with vega and vega-lite, and rendering as SVG via d3.dsv. A custom configuration adjusts axis labels and tick styling for readability, while d3.csv loads the remote dataset. Tooltips display car model names on hover using vega-tooltip.
AI-generated descriptionA visualization constructed using the vega-lite-api.