Skip to main content
100%

Vega-Lite API

✓ Published1🌍 Public
Bboreilly26
Last edited Dec 30, 2021
Created on Dec 30, 2021
Forked from HTML Starter

This example demonstrates a scatterplot of automotive data, mapping the country of origin along the x-axis, horsepower on the y-axis, with weight mapped to color and miles per gallon mapped to point size. Built with the Vega-Lite API, it constructs the visualization declaratively using `vl.markCircle()`, `vl.x()`, `vl.y()`, `vl.color()`, and `vl.size()`. The chart loads data from a CSV via D3’s `csv()` and uses the Vega-Lite runtime to render interactively with tooltips.

AI-generated description

A template for using Vega-Lite API.

MIT Licensed

Similar vizzes