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