Skip to main content
100%

Vega-Lite API Playground

✓ Published0🌍 Public
Jjunxiangyao
Last edited Nov 1, 2020
Created on Nov 1, 2020

This example visualizes the relationship between horsepower and acceleration for cars, with tooltips revealing the vehicle name. Built using the Vega-Lite API, it abstracts away the typical D3 code by composing a scatterplot through function calls like `vl.markPoint()` and `vl.x().fieldQ()` for quantitative scales. The visualization loads CSV data from a GitHub gist via D3’s `csv` loader, and renders to SVG inside the browser. Configuration customizes axis fonts and colors, while the Vega-Lite library compiles the specification into Vega, which handles the rendering.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes