Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
LLeandro Miguel Narciso
Last edited Jul 7, 2021
Created on Jul 7, 2021

This example displays a scatterplot of automobile data, mapping miles per gallon and horsepower from a CSV dataset, with points colored by origin and sized by mpg. The visualization uses the Vega-Lite API (vl) to construct the chart declaratively, while D3.js fetches the data via `d3.csv`. Custom styling is applied through a Vega-Lite config for axis and label appearance. The code registers Vega and Vega-Lite with the API, renders to SVG, and integrates a tooltip handler for interactive exploration.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes