Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes