Published
Edited
Nov 1, 2021
Insert cell
Insert cell
Insert cell
Insert cell
[...Array(10).keys()].map(price_in => ({a:model.revenue({price_in})}))
Insert cell
model.units({price_in:100})
Insert cell
Insert cell
Insert cell
## Appendix
Insert cell
model = require("https://observable-cors.glitch.me/https://raw.githubusercontent.com/declann/calculang-example-repl-repo/master/src/revenue-with-demand-curve.js")
// this won't refresh with changes to model, but I can add a refresh link with ?random=<some value that updates on refresh click>
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more