Fork of Vega-Lite API Template
✓ Published1🌍 Public
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.
MIT Licensed