🌍 Public
practice
This visualization displays the distribution of religious populations across Indian states using a hierarchical tree layout. The code constructs a nested data structure with India as the root, major religions such as Hinduism, Islam, and Christianity as primary branches, and individual states as leaf nodes. It utilizes D3.js v7 to render the tree as an SVG, with nodes colored based on their hierarchy level and links styled as curved paths. The visualization highlights which states have significant populations of each religion, though the numeric values are arbitrary rather than sourced from actual census data.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.