Stacked Bar Chart using Religion Data Using Vega-Lite API Template
✓ Published0🌍 Public
JJason Tiller
Last edited Mar 3, 2021
Created on Mar 3, 2021
This stacked bar chart visualizes the top five religions by country, with circle size encoding population and axes mapping country and religion. Using the Vega-Lite API template, the code registers Vega, Vega-Lite, and vega-tooltip, then fetches CSV data via d3.csv from a GitHub gist. The viz.js specification defines markCircle with fieldN and fieldQ encodings, while config.js customizes axis labels and titles for readability. The chart renders as an SVG that fits the viewport, with tooltips displaying population values.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed