Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
YYR2388
Last edited Apr 12, 2021
Created on Apr 12, 2021

This example displays a bar chart of average fuel efficiency values across several countries, with bars colored on a blue gradient and mouseover interactions that highlight bars in yellow. It uses the Vega-Lite API to generate a scatter plot of auto MPG data from the UCI Machine Learning Repository, encoding horsepower, weight, and origin. The visualization is rendered with D3.js v5, using SVG elements and scales, with animated transitions on mouseout events.

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