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