Skip to main content
100%

Fork of Time Preference

✓ Published0🌍 Public
MMarcelo
Last edited Apr 10, 2021
Created on Apr 10, 2021
Forked from 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
MIT Licensed

Similar vizzes