🌍 Public
Viewing a saved revision (read-only)
ea92bf4f4f06436cb638187015e6d5de
Vega-Lite API Template
This example visualizes the relationship between country and year using a bar chart, where each bar’s length encodes the year value, sorted in descending order. It processes data from a TSV file, calculating a burglary-per-capita metric and filtering out low values before rendering. The visualization is built with the Vega-Lite API, using `vl.markBar` and `vl.y().fieldQ` for encoding, while D3’s `tsv` loader fetches the dataset. A custom configuration adjusts axis fonts and colors for readability.
AI-generated descriptionA visualization constructed using the vega-lite-api.