Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

ea92bf4f4f06436cb638187015e6d5de

Vega-Lite API Template

0 stars0🌍 Public
DdaojunL
Last edited Sep 24, 2020
Created on Sep 24, 2020

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 description

A visualization constructed using the vega-lite-api.