D3 Example
This example visualizes the religious demographics of the top five most populous countries—China, India, the USA, Indonesia, and Brazil—using grouped bar charts. Each country’s population is broken down by religion, with bars colored according to the religious category. The visualization is built with D3.js, specifically using `d3.layout.stack` for the stacked data structure and `d3.legend.color` to generate the color legend. The data originates from the CSV file `religionByCountryTop5.csv`, which is loaded using `d3.csv`. The chart employs SVG rendering with ordinal and linear scales for the axes.