Fork of Vega-Lite API Template
✓ Published0🌍 Public
A bar chart displays Finnish crime statistics from 2019 and 2020, sourced via a StatFin API request filtered by court, crime group, and appellant. The visualization uses Vega-Lite API for encoding, with `vl.markBar` for bars and `vl.y().fieldQ('name')`/`vl.x().fieldN('age')` mappings. Data is fetched asynchronously with d3.csv and d3.json, though the chart ultimately plots sample JSON objects with names and ages rather than the fetched statistics. Custom styling includes dark axis labels and enlarged fonts via a config object.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed