Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example visualizes traffic crash data from Porto Alegre, plotting accident counts of automobiles against motorcycles using a circle mark with 50% opacity and tooltips for the log-transformed field. The visualization is built with the Vega-Lite API, registering Vega and Vega-Lite in an index.js file, and applies a customized dark theme via a config object. Data is loaded asynchronously from a CSV using d3.csv, with the chart sized to fit the window and rendered as SVG into the page body.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.
MIT Licensed