Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes