Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
Llscholz1
Last edited Apr 26, 2020
Created on Apr 26, 2020

A bar chart displays the number of convictions for each age group, sorted in descending order by age. The visualization is built using the Vega-Lite API library, which programmatically constructs the chart specification via `vl.markBar()`, `vl.x()`, and `vl.y()`. Data is loaded asynchronously from a CSV URL using `d3.csv`. The chart renders with Vega-Lite's SVG renderer, and hovering triggers a tooltip via the `vega-tooltip` handler. Appearance is customized through a shared config object that removes axis domains and adjusts tick colors, label sizes, and dark text styling.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes