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