Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Dan B Vega-Lite API Template

Public visualization

Dan B Vega-Lite API Template

0 stars0🌍 Public
Rrekabbnad
Last edited Jun 24, 2022
Created on Jun 21, 2022

This visualization displays a scatter plot of auto MPG data, mapping origin to the x-axis and horsepower to the y-axis, with circular marks and tooltips showing car names. The visualization is built using the Vega-Lite API, which registers with Vega and Vega-Lite libraries to render SVG output. Data is loaded asynchronously from a CSV file using d3.csv, sourced from the UCI Machine Learning Repository’s Auto MPG dataset. The code configures axis appearance and styling through a custom config object, and the chart resizes to fit the 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.

Comments

Sign in to join the discussion.

MIT Licensed