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)

67a8cb57ede34812a3e93f6b3ef1a193

Fork of Vega-Lite API Template

0 stars1🌍 Public
Iiffath.namira@csedge.org
Last edited Jan 10, 2025
Created on Jan 10, 2025

This example uses the Vega-Lite API with D3 to create a scatter plot of auto-mpg data, plotting engine displacement against horsepower. Each point is a semi-transparent circle colored uniformly, with tooltips displaying the vehicle name. The visualization reads CSV data from a GitHub gist via D3’s `csv` function, and configures axes and label styling. It renders an SVG chart that fills the window using Vega-Lite’s `.width()` and `.height()` methods, with a custom tooltip handler from Vega-Tooltip.

AI-generated description

A visualization constructed using the vega-lite-api.