Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ACE - Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

4fc7b10e137642888fed06b06268e857

ACE - Fork of Vega-Lite API Template

0 stars0🌍 Public
Ssucotton9
Last edited Jul 13, 2021
Created on Jul 13, 2021

This example visualizes the Auto MPG dataset from the UCI Machine Learning Repository, plotting vehicle fuel efficiency (mpg) against horsepower. Each circle’s size encodes weight, while color distinguishes the origin of the vehicle, and hovering reveals the car’s name. Built with the Vega-Lite API and D3’s `csv` loader, the chart uses `vl.x()`, `vl.y()`, `vl.color()`, and `vl.size()` for encoding, with a fixed circle size and opacity. The visualization is configured to fit the window dimensions and uses a custom dark theme via `config.js`.

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.