Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Infection Type Chart

Public visualization

Infection Type Chart

0 stars0🌍 Public
Aatrixx
Last edited Apr 17, 2020
Created on Apr 17, 2020

This example shows the number of COVID-19 infection cases across Chinese provinces, stacked by transmission type (PublicTransit, Relative, Social, Unknown). Users can toggle between absolute counts and percentage-based views. The visualization uses d3.layout.stack and d3.svg.axis to render animated, stacked bar charts in SVG. A radio button triggers transitions between count and percent modes, while a custom tooltip and legend provide context. Data comes from a CSV file listing cases per province and transmission category.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed