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)

f81e5bdefd8a4281886b425f48efaa6d

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAamir Hameed mir
Last edited Jun 6, 2024
Created on Jun 6, 2024

This interactive scatter plot visualizes the relationship between miles per gallon, horsepower, weight, and origin for classic automobiles from the UCI Auto MPG dataset. The visualization uses the Vega-Lite API in JavaScript to define the marks and encodings, with data loaded asynchronously via D3’s `csv` method. The chart is rendered as an SVG, and the Vega-Tooltip handler displays detailed vehicle names on hover. The code also customizes axis and label styles for improved readability, following the Vega-Lite configuration format.

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.