Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
AAnne Lin
Last edited Dec 13, 2021
Created on Dec 13, 2021

This interactive scatterplot visualizes the relationship between fuel efficiency (mpg) and horsepower for vehicles from the UCI Auto MPG dataset, with point size encoding weight and color encoding origin. Built with the Vega-Lite API (vl.markCircle, vl.x, vl.y) and rendered through D3.js, it uses vega-tooltip for hover details and a custom config to style axes and labels. The chart spans the full viewport and updates dynamically on resize, demonstrating the Vega-Lite API’s programmatic chart construction within a D3 framework.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

MIT Licensed

Similar vizzes