Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template-- faizal

Public visualization

Fork of Vega-Lite API Template-- faizal

0 stars0🌍 Public
Ffaizalmunna
Last edited Jul 28, 2021
Created on Jul 27, 2021

This visualization uses the Vega-Lite API to render a scatterplot of automobile data from an auto-mpg CSV dataset, with displacement on the x-axis and horsepower on the y-axis. Each point is semi-transparent blue, and hovering reveals the vehicle name via tooltips. The code registers Vega-Lite with D3’s CSV loader, applies custom axis and label styling from a config object, and dynamically sizes the chart to the window. It demonstrates the vega-lite-api library’s programmatic specification-building approach.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed