Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Dumbbell Chart

Public visualization

Fork of Dumbbell Chart

0 stars0🌍 Public
Bblueyjuice
Last edited Nov 27, 2021
Created on Nov 27, 2021
Forked from Dumbbell Chart

The chart compares alcohol consumption before and after an intervention for individual patients, with paired circles connected by vertical lines. It uses React components for rendering SVG marks, axes, and grid lines, while D3 v6 utilities such as `scaleLinear`, `scalePoint`, and `extent` handle scaling and domain calculation. Data is loaded asynchronously from a CSV URL via `d3.csv` and filtered to 15 patients. The visualization employs a dumbbell chart layout to highlight changes per patient, with green and orange circles representing before and after values respectively.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed