Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars0🌍 Public
1110101072@nccu.edu.tw
Last edited Jul 24, 2026
Created on Jul 24, 2026

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

Comments

Sign in to join the discussion.

MIT Licensed