🌍 Public
Viewing a saved revision (read-only)
fb86267c6bdf44f5b2070852c83c323b
Fork of Vega-Lite API Template
This example uses the Vega-Lite API to render a scatter plot of automobile data from a CSV file, mapping engine displacement to the x-axis, horsepower to the y-axis, model year to color, and weight to point size. The visualization is built programmatically with `vl.markCircle`, `vl.x`, `vl.y`, and related encoding methods, then rendered as an SVG via Vega-Lite’s `render` method. It incorporates D3’s `csv` loader for data ingestion and a custom configuration for axis styling and tooltips.
AI-generated description