🌍 Public
Viewing a saved revision (read-only)
9cb42e8e40f54d359500e172b1b2c196
Fork of Vega-Lite API Template
This example visualizes the relationship between engine displacement and horsepower in the auto-mpg dataset, with tooltips showing car model names for each point. The visualization uses the Vega-Lite API to declare a scatter plot with semi-transparent points, while D3’s csv loader fetches the data from a GitHub gist. The code registers Vega, Vega-Lite, and vega-tooltip through the vl API, customizes axes and label styling via a config object, and renders an SVG chart that fills the browser window.
AI-generated descriptionA visualization constructed using the vega-lite-api.