Dataviz 5 - Iterating fast with Vega Lite API
✓ Published0🌍 Public
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 descriptionA visualization constructed using the vega-lite-api.
MIT Licensed