🌍 Public
Viewing a saved revision (read-only)
f7330422c6bb4781b478f9ceaed9a3db
Gokul's Vega-Lite API Template
This example visualizes automobile performance by plotting miles per gallon against horsepower, with circles colored by origin and sized by weight, and tooltips revealing car names. It loads the classic Auto MPG dataset from a CSV file using D3’s `csv` function. The visualization is built with the Vega-Lite API (`vl.markCircle`, `vl.x`, `vl.y`), which compiles to Vega and renders to SVG, while the `vega-tooltip` handler enables interactive hover details. Configuration settings adjust axis fonts and gridline appearance for readability.
AI-generated descriptionA visualization constructed using the vega-lite-api.