Fork of Fork of Loading Data Religion by Country Francesca Sajedi
This example visualizes the global spread of religions using data from the Pew Research Center, showing population figures for each religious group by country. The visualization displays a map view of countries, highlighting the dominant religion per country and enabling comparison of religious population sizes across regions. The code uses D3 v7’s `fetch` to load a CSV file, `csvParse` to parse the data, and converts string values to numbers for quantitative analysis. The data includes categories for Christians, Muslims, Hindus, Buddhists, and other faiths, with null values representing populations under 10,000.
AI-generated descriptionData from: https://github.com/curran/data/blob/gh-pages/pew/religion/religionByCountry.csv
Questions:
Look at the different religions on a map to see the spread of religion Being able to show the population of a country by relgion Map view of all the different religions (maybe the top one per country)
NULL for any of the religions means < 10000
Column Header Type Country Categorical Christian Quantitative Muslim Quantitative Unaffiliated Quantitative Hindu Quantitative Buddhist Quantitative Folk Religions Quantitative Other Religions Quantitative Jewish Quantitative