Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Time Preference

Public visualization

Viewing a saved revision (read-only)

b3fdafbfafd64572873b495d52441a8e

Time Preference

0 stars1🌍 Public
WWaseem Medhat
Last edited Dec 2, 2020
Created on Nov 29, 2020
Forked from Dumbbell Chart

This visualization compares cumulative net benefits of two programs over time, showing both discounted and undiscounted values in a small-multiple panel. The code uses d3.scalePoint, d3.scaleBand, d3.scaleLinear, and d3.cumsum to compute cumulative sums, while React components render SVG axes and line marks. Data is loaded from a CSV via d3.csv, with a fixed 10% discount rate applied to costs and benefits. The split panel design highlights how discounting alters long-term benefit trajectories.

AI-generated description