Published
Edited
Jan 26, 2021
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
speed = speedSlider / 1000
Insert cell
Insert cell
plot({ stepPlot: multiplierFn }, { windowMillis: 60 * 1000, yRange: [-4, 4] })
Insert cell
multiplierFn = now => (2 * (Math.PI * (-10 + ((now * speed) % 20)))) / 20
Insert cell
multiplier = multiplierFn(now)
Insert cell
Insert cell
import { plot } from "@cimi/plot"
Insert cell
import { slider } from "@jashkenas/inputs"
Insert cell
d3 = require('d3')
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