Vega-Lite API
✓ Published0🌍 Public
This example visualizes the relationship between engine acceleration and horsepower for vintage automobiles, with a tooltip revealing each vehicle’s name. It embeds a Vega-Lite specification built programmatically via the `vega-lite-api` package, which registers both Vega and Vega-Lite for SVG rendering and tooltip integration. The scatterplot uses an opacity of 0.1 and size 900 to show overlapping points, while axes and tick labels are customized through a Vega-Lite `config` object. Data is loaded asynchronously from a CSV using d3’s `csv` loader. The visualization automatically fits the browser window using `autosize`.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed