🌍 Public
Viewing a saved revision (read-only)
0c778f1a16ed4322aa52921b0b666e9d
Vega-Lite API Template Stacked Bars
This stacked bar chart displays the top 5 religions by population for each country, using color to encode religion and bar length to encode population. The visualization is built with the Vega-Lite API, which constructs a specification programmatically using methods like `markBar()` and `encode()`. Data is loaded from a CSV file via `d3.csv`, and the chart is rendered to SVG through Vega, with custom configuration for axis styling and tooltips provided by `vega-tooltip`.
AI-generated descriptionA visualization constructed using the vega-lite-api.