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