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