Public
Edited
Aug 4, 2023
1 fork
Insert cell
Insert cell
Plot.plot({
x: { label: 'Frequency', reverse: true, domain: [0, 4000] },
y: { label: 'Intensity', },
marks: [
Plot.ruleY([0]),
Plot.rect(ir, {x1: d => d.x - range / 2, x2: d => d.x + range / 2, y1: 1, y2: d => 1 - d.y, fill: '#ccc' }),
Plot.lineY(line, {x: 'x', y: 'y', stroke: 'rebeccapurple', strokeWidth: 2 })
]
})
Insert cell
viewof sigma = Inputs.range([0, 500], {label: "Sigma", step: 1})
Insert cell
viewof range = Inputs.range([0, 100], {label: "Bar Width", step: 10})
Insert cell
index = FileAttachment("index.json").json()
Insert cell
Insert cell
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