Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to create a scatter plot of automotive data, showing the relationship between engine displacement and horsepower, with point size mapping to vehicle weight and color encoding the model year. A tooltip reveals the car name for each point. The visualization is built using the `vega-lite-api` library, which generates Vega-Lite specifications that are rendered via the Vega engine. Data is loaded from a CSV file using D3's `csv` function, and the chart is rendered as an SVG with a custom tooltip handler from `vega-tooltip`.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed