Vega-Lite API Template
✓ Published0🌍 Public
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.
MIT Licensed