Skip to main content
100%

Dataviz 5 - Iterating fast with Vega Lite API

✓ Published0🌍 Public
RRyAlpha
Last edited Nov 20, 2021
Created on Nov 20, 2021

A scatter plot visualizes the relationship between fuel efficiency (mpg) and horsepower for various car models, with color encoding country of origin and size encoding weight. Built using the Vega-Lite API with D3.js for data loading, the visualization renders interactively with tooltips showing model names. The code reads from an auto-mpg CSV dataset via d3.csv. The example demonstrates rapid iteration through concise declarative specifications, where the vl.markCircle function encodes all visual channels directly.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes