Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Aaymen0023
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example uses the Vega-Lite API to render a scatter plot of automobile data from a CSV file, plotting engine displacement against horsepower with a tooltip that displays the car name. The code registers Vega, Vega-Lite, and Vega-Lite API with a tooltip handler, loads the data via d3.csv, and applies custom styling through a config object. It demonstrates a programmatic workflow where the chart specification, data loading, and rendering are separated across modules, culminating in a full-screen, interactive visualization.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes