🌍 Public
Viewing a saved revision (read-only)
07d2355f79cb438cb88ebd1454ac5ce3
Fork of Vega-Lite API Template
A scatter plot displays the relationship between fuel efficiency (mpg) and horsepower for historical automobile models, with tooltips revealing each car's name. The visualization is built using the Vega-Lite API, which constructs a specification executed by Vega Lite and rendered as SVG by Vega. Data is loaded asynchronously from a CSV file via `d3.csv`. The chart dynamically resizes to fit the browser window, and the dark-themed configuration adjusts axis tick colors and label font sizes. Interactions are enabled through the `vega-tooltip` Handler class.
AI-generated descriptionA visualization constructed using the vega-lite-api.