Vega-Lite API Template
✓ Published2🌍 Public
This example visualizes the relationship between acceleration and horsepower for vehicles from the auto-mpg dataset, with each point representing a car and a tooltip revealing its name. The visualization uses the Vega-Lite API to construct a scatterplot with configurable opacity and point size, rendered as an SVG. The code loads CSV data via d3.csv, registers the Vega-Lite API with Vega and the Vega-Tooltip handler, and fits the chart to the full browser window.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed