🌍 Public
Viewing a saved revision (read-only)
ad86174cc3a04d419a40ba7e1f23ba3a
Vega-Lite API Template
This example visualizes the relationship between engine displacement and horsepower using a scatter plot of vehicle data. The visualization employs a Vega-Lite specification constructed programmatically via the vega-lite-api library, with data loaded from a CSV file using d3.csv. The chart renders as a single SVG element sized to fit the viewport, with points colored by opacity to reveal density. Axis styling and font sizes are customized through a Vega-Lite configuration object, while tooltips are enabled through vega-tooltip.
AI-generated descriptionA visualization constructed using the vega-lite-api.