Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars0🌍 Public
GGnav3852
Last edited Nov 25, 2020
Created on Nov 25, 2020

This visualization displays automobile data from the auto-mpg CSV file, plotting engine displacement against horsepower. Each point represents a vehicle, colored by its country of origin, with hover tooltips revealing the model name. The example demonstrates the vega-lite-api, which builds Vega-Lite specifications through a fluent JavaScript interface. It uses d3.csv for data loading, Vega-Lite's markPoint encoding, and integrates vega-tooltip for interactive labels. The visualization automatically resizes to fit the browser window, with custom axis styling and dark-themed labels.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed