Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

53df88c811f34a94b23d1b264d4c19bf

Fork of Vega-Lite API Template

0 stars0🌍 Public
Aaakarshgoel01
Last edited Sep 28, 2023
Created on Sep 28, 2023

This dashboard visualizes the relationship between fuel efficiency (MPG), horsepower, origin, and weight in a scatterplot of the Auto MPG dataset from the UCI Machine Learning Repository. Each circle is positioned by MPG and horsepower, colored by country of origin, and sized according to vehicle weight. The example uses the Vega-Lite API, registering `vega` and `vega-lite` libraries to build a declarative spec programmatically. Data is loaded via `d3.csv`, and the chart renders as an SVG with custom tooltips provided by the `vega-tooltip` handler.

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.