🌍 Public
Viewing a saved revision (read-only)
271511ba81854387bd046cdec9e68ffd
Time Preference
This example visualizes the cumulative net benefit of two programs over time, comparing undiscounted versus discounted cash flows. Two smoothed line series per program show how discounting reduces future benefits, with dashed lines representing raw cumulative net benefits and solid lines showing discounted values. The visualization uses React components with D3 scales (`scaleLinear`, `scalePoint`) to map years and currency values, while `d3.line` with `curveNatural` generates the paths. Data comes from a CSV file processed with `d3.csv`, where costs and benefits are discounted at 10% annually.
AI-generated description