Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

898689ddf0634fa59cca8237c8c38a65

Fork of Vega-Lite API Template

0 stars0🌍 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.