Fork of Loading Data Religion by Country Francesca Sajedi
This example loads a CSV of religion data by country and displays the raw parsed data in a text format. The visualization fetches data.csv, parses it with `csvParse`, and converts quantitative fields like Christian, Muslim, and Buddhist populations to numbers. The current view shows the structured data as a JSON string, with a loading state indicated before the fetch completes. The code uses D3 v7’s `select` and `csvParse` to manage data loading and rendering updates.
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








Comments
Sign in to join the discussion.