Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task_Activity_2

Public visualization

Viewing a saved revision (read-only)

bf47cde61a604fd187057587acf06a64

Task_Activity_2

0 stars0🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.