Skip to main content
100%

Time Preference

✓ Published1🌍 Public
WWaseem Medhat
Last edited Jan 10, 2021
Created on Dec 2, 2020
Forked from 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
MIT Licensed

Similar vizzes