Task8_Question2
✓ Published0🌍 Public
A horizontal stacked bar chart visualizes the proportional distribution of religious populations (in billions) across China, India, and the United States. The chart uses d3.scaleBand and d3.scaleLinear with a d3.axisBottom, encoding each religion with a distinct color from a d3.scaleOrdinal. Hovering a rect triggers a simple opacity change and a custom tooltip via mouseover and mousemove. Data loads from a local CSV using d3, and the visualization renders as SVG, importing D3 v7 from UNPKG.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed