🌍 Public
Viewing a saved revision (read-only)
94d982bdbe1144f69a50b7e8bdf609d8
Fork of Vega-Lite API Template
This example displays a scatter plot of automobile engine displacement against horsepower, colored by country of origin, with tooltips revealing vehicle names. The visualization is built using the Vega-Lite API, which programmatically constructs a specification that is then rendered by Vega. Data is loaded asynchronously from a CSV file via D3’s `csv` function. The code registers Vega-Lite with the API, applies custom axis and label styling from a configuration object, and renders the chart to fill the browser window using an SVG renderer.
AI-generated descriptionA visualization constructed using the vega-lite-api.