🌍 Public
Viewing a saved revision (read-only)
e6f2cb37e5a8459c8f2f90a3074f9bf8
Fork of Vega-Lite API Template
This example demonstrates a scatter plot of automobile performance data, using the Vega-Lite API to visualize the relationship between acceleration and horsepower for various car models. The visualization encodes each car as a point, with tooltips revealing the vehicle's name on hover. The code leverages the `vega-lite-api` library, which wraps Vega-Lite and Vega for declarative chart construction, and uses D3's `csv` function to fetch and parse the `auto-mpg.csv` dataset. The chart is configured with a dark theme and custom axis styling to improve readability, and it renders as an interactive SVG.
AI-generated descriptionA visualization constructed using the vega-lite-api.