Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

J.I. Bar chart (with menu)

Public visualization

Viewing a saved revision (read-only)

75399d539f7843e69fffc6c1d91dde79

J.I. Bar chart (with menu)

0 stars1🌍 Public
BbeauMarko
Last edited Mar 18, 2021
Created on Mar 17, 2021

This example shows a bar chart comparing COVID-19 and other donation data across donor types, with each category split into two rows for actions and amounts. An interactive menu lets viewers switch between total, COVID-only, and other-only views, updating the bar lengths dynamically. Built with React and D3 v6, it uses `scaleBand` and `scaleLinear` for positioning, SVG patterns and masks for striped bars, and `csv` to load data from a GitHub gist.

AI-generated description