Skip to main content
100%

Time Preference

✓ Published1🌍 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
MIT Licensed

Similar vizzes