Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

51bcb94809f742fb92b9128a7180bb68

Fork of Vega-Lite API Template

0 stars0🌍 Public
JJayanth
Last edited Oct 4, 2021
Created on Oct 4, 2021

This example visualizes automobile fuel-efficiency data by plotting engine horsepower against miles per gallon, with colored points indicating the country of origin and point size encoding horsepower values. It uses the Vega-Lite API to construct the chart specification, which is then rendered through Vega-Lite’s compilation to Vega, with D3.js handling CSV data loading. The visualization employs a custom dark theme, tooltips, and auto-sizing to fill the browser window, all orchestrated via JavaScript modules that register the Vega-Lite API and D3’s CSV parser.

AI-generated description

A visualization constructed using the vega-lite-api.