Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Stack Chart Template

Public visualization

Viewing a saved revision (read-only)

bfdb67969e2f43168326859b1f1716c0

Fork of Fork of Stack Chart Template

0 stars0🌍 Public
YYunLing
Last edited Nov 15, 2023
Created on Oct 17, 2023

This example shows a stacked bar chart of the three data types (type1, type2, type3) across Chinese provinces, with the chart title referencing WHO data on deaths from illnesses in 2013. It uses D3.js (v3.5.6) with d3.layout.stack, d3.scale.ordinal, and d3.scale.linear to render the stacked bars as SVG. The visualization includes interactive radio buttons to toggle between raw counts and percentage views, though the corresponding transition logic is not fully implemented in the visible code. The data comes from local CSV files (data3.csv).

AI-generated description