🌍 Public
Viewing a saved revision (read-only)
bf47cde61a604fd187057587acf06a64
Task_Activity_2
This visualization displays the proportion of patients rated across five severity categories for six diseases: Covid, TB, Cancer, HIV, Cold, and Fever. It uses a horizontal stacked bar chart, where each bar is segmented by percentage. The code uses D3 v7’s `d3.stack` for data processing, `d3.scaleOrdinal` for color, and `d3.axisLeft`/`d3.axisBottom` for axes. A tooltip reveals the exact percentage on hover. The data is loaded from a CSV file and rendered as SVG graphics.
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.