Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Time Preference

Public visualization

Viewing a saved revision (read-only)

442e4e1f739c4d3ba1c0b091da1a2651

Fork of Time Preference

0 stars0🌍 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