Vega-Lite API Template
✓ Published1🌍 Public
This example visualizes commuting flows, plotting the relationship between the margin of error and the commuting flow volume for different work counties. It uses a scatter plot with circles whose size is also encoded by commuting flow, and both the x- and y-axes use a logarithmic scale. The visualization is built programmatically with the Vega-Lite API, which registers the Vega and Vega-Lite libraries, and it renders to an SVG canvas. The data is loaded from a remote CSV file using d3’s `csv` function, and the chart includes interactive tooltips provided by the vega-tooltip handler.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed