Skip to main content
100%

Vega-Lite API Template

✓ Published2🌍 Public
CCurran Kelleher
Last edited Sep 2, 2019
Created on Sep 2, 2019

This example visualizes the relationship between acceleration and horsepower for vehicles from the auto-mpg dataset, with each point representing a car and a tooltip revealing its name. The visualization uses the Vega-Lite API to construct a scatterplot with configurable opacity and point size, rendered as an SVG. The code loads CSV data via d3.csv, registers the Vega-Lite API with Vega and the Vega-Tooltip handler, and fits the chart to the full browser window.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes