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)

0df4f43f850f4966b35a7ff0f2ba0192

Fork of Vega-Lite API Template

0 stars0🌍 Public
Jjames.haarbauer@dunya-analytics.com
Last edited Jun 17, 2024
Created on Jun 17, 2024

This example visualizes the relationship between miles per gallon and horsepower across automobile models, with each point labeled by vehicle name via tooltips. It uses the Vega-Lite API to declaratively encode the scatterplot’s x- and y-axes with quantitative scales, while relying on D3’s CSV loader to fetch remote data. The visualization is rendered as SVG through Vega and Vega-Lite, with custom axis styling and a dark color scheme for readability. Vega Tooltip handles interactive hover details, and the chart auto-fits to the full browser window.

AI-generated description

A visualization constructed using the vega-lite-api.