Skip to main content
100%

Vega-Lite API Template

✓ Published2🌍 Public
QQingyue99
Last edited Apr 26, 2020
Created on Apr 26, 2020

This example presents a bar chart of population by country, with bars segmented by religion, using the Vega-Lite API. The visualization reads CSV data from a GitHub gist via `d3.csv` and encodes country, population, and religion through `vl.x()`, `vl.y()`, and `vl.color()`. It renders as an SVG in the browser, applying custom axis and label styling from a config object. The chart also includes tooltips for population values, powered by the Vega Tooltip handler.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes