🌍 Public
Viewing a saved revision (read-only)
4ba0295dc9f14585bd21d592a634f3ba
Fork of Vega-Lite API Template
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 descriptionA visualization constructed using the vega-lite-api.