Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
NNikhilchiguru-8
Last edited Mar 8, 2023
Created on Mar 8, 2023

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 description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes