🌍 Public
Viewing a saved revision (read-only)
63ad5d2e2e0644c0ad4bd291d306d7a3
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