🌍 Public
Viewing a saved revision (read-only)
b967789d3fd3446fa7cc6e3c8e29f8e6
Vega-Lite API Template
This example demonstrates a scatter plot of automotive data, mapping engine displacement to horsepower with circle color encoding model year and size encoding vehicle weight. Tooltips reveal car names on hover. It is built using the Vega-Lite API, a programmatic wrapper for the Vega-Lite grammar, with data loaded from a CSV via D3's `csv` function and rendered as SVG through the bundled Vega and Vega-Lite libraries. The visualization spans the full viewport and applies custom axis and label styling.
AI-generated descriptionA visualization constructed using the vega-lite-api.