Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Iinar-vision
Last edited Sep 5, 2022
Created on Sep 1, 2022

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 description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes