Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
EEevikettu
Last edited Oct 25, 2022
Created on Oct 25, 2022

This visualization displays the population distribution of major religions across countries using a bar chart, with each bar segmented and colored by religion. It leverages the Vega-Lite API (`vl.markBar`, `vl.x().fieldN('country')`) to encode the data, with tooltips showing population values via `vl.tooltip().fieldN('population')`. The chart reads from a CSV file containing religion-by-country statistics, loaded asynchronously via D3’s `csv` function. Rendering is handled through Vega and Vega-Lite’s JavaScript libraries, with custom styling applied from a configuration object for axis colors and font sizes.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes