Skip to main content
100%

Vega-Lite API Template - Part 1

✓ Published0🌍 Public
TTom-S82
Last edited Jul 25, 2020
Created on Jul 24, 2020

This example shows car specifications as a scatter plot, with miles per gallon on the x-axis, horsepower on the y-axis, origin as color, and fuel efficiency also encoded by point size. It uses the Vega-Lite API to construct the visualization programmatically, registering Vega and Vega-Lite v5/v4 with d3.csv for data loading from the Auto-MPG dataset. The chart is rendered as SVG, with tooltips enabled via the Vega Tooltip handler and a custom dark color scheme for axes and labels.

AI-generated description

A visualization constructed using the vega-lite-api.


Tutorials:

MIT Licensed

Similar vizzes