🌍 Public
Viewing a saved revision (read-only)
1bad5a009c4c4e5bbb474ff4d7ba952d
Fork of Time Preference
This chart compares the cumulative net benefits of programs over time, contrasting the raw totals with values discounted by a 10% annual rate. It calculates these series via `d3.groups`, `d3.cumsum`, and `d3.extent`, then renders them as natural curves using `d3.line` with the `curveNatural` method. Dashed, semi-transparent lines depict the undiscounted sums while solid lines show discounted figures, with the SVG output built in React and scales from `d3.scalePoint` and `d3.scaleLinear`. Data is fetched from a CSV using `d3.csv`.
AI-generated description