Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
AAnu Wat
Last edited Oct 17, 2021
Created on Oct 17, 2021

This example visualizes the relationship between fuel efficiency (mpg) and horsepower for classic automobiles, with points colored by country of origin and tooltips revealing model names. It uses the Vega-Lite API (`vl.markCircle`, `vl.x().fieldQ()`, `vl.color().fieldN()`) to declaratively encode the data, with rendering handled by Vega and Vega-Lite. The CSV dataset is fetched via d3’s `csv` function, and the visualization adapts to the browser window using `.width()` and `.height()` with autofit behavior.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes