Skip to main content
100%

Template Vega-Lite Api

✓ Published0🌍 Public
AAlan Santos
Last edited Jun 1, 2022
Created on Jun 1, 2022

This example demonstrates a scatter plot of automobile data, mapping miles per gallon, horsepower, weight, and origin using the Vega-Lite API. It shows how to declaratively build interactive visualizations with circle marks, color encoding, and tooltips. The code registers Vega, Vega-Lite, and vega-tooltip via `vl.register`, loads CSV data from a gist using d3.csv, and renders to an SVG view that fits the window. Appearance is customized with a configuration object, and the visualization auto-sizes with padding.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes