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)

4ba0295dc9f14585bd21d592a634f3ba

Fork of Vega-Lite API Template

0 stars0🌍 Public
PPaweł Oleniak
Last edited Oct 31, 2021
Created on Oct 30, 2021

This example shows a scatterplot of automobile data, plotting horsepower against model year, with points colored by vehicle weight and labeled interactively via tooltips. The visualization is constructed declaratively using the Vega-Lite API (vl) and rendered with Vega, while D3 is used to load the CSV dataset from a GitHub gist. The code applies custom configuration for axis styling and tooltip appearance, then dynamically sizes the chart to the full window. It demonstrates integrating Vega-Lite’s high-level grammar with D3’s data fetching capabilities.

AI-generated description

A visualization constructed using the vega-lite-api.