🌍 Public
Viewing a saved revision (read-only)
68585a81c13e4ad18d0d7ec22ddba389
Time Preference
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