Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Time Preference

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed