Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

v1_Fork of Vega-Lite API Template

Public visualization

v1_Fork of Vega-Lite API Template

0 stars0🌍 Public
SsunilthkGmail
Last edited Jan 23, 2023
Created on Jan 23, 2023

This visualization displays automobile data as a scatter plot, mapping engine displacement on the x-axis against horsepower on the y-axis, with points colored by model year and sized according to vehicle weight. The chart uses the Vega-Lite API to declaratively encode these fields, with D3’s CSV loader fetching the auto-mpg dataset from a GitHub gist. Custom axis and label styling in the configuration enhance readability, while tooltips reveal each car’s name. The visualization renders as an interactive SVG, automatically sizing to fill the browser window.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed