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)

d1d53a00fcab4142a421855e37548ba9

Fork of Vega-Lite API Template

0 stars0🌍 Public
PPratik Raja
Last edited Aug 5, 2024
Created on Aug 5, 2024

This scatter plot visualizes the relationship between the origin and horsepower of cars from the Auto MPG dataset. The visualization is built programmatically using the Vega-Lite API, which registers Vega and Vega-Lite libraries to render an interactive SVG chart. It loads data from a CSV file via `d3.csv`, applies custom axis and label styling, and uses a tooltip handler to display car names on hover. The chart automatically fits the browser window dimensions.

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.