Published
Edited
May 2, 2020
Insert cell
md`# Wave Data Vis`
Insert cell
embed = require("vega-embed@6")
Insert cell
drawData = wave.data.map((v, i) => { return { index: i, position: wave.points[i], value: v } })
Insert cell
viewof view = embed({
$schema: 'https://vega.github.io/schema/vega-lite/v4.json',
width: 800,
height: 400,
data: {
values: drawData,
name: 'source'
},
mark: 'area',
encoding: {
x: {field: 'position', type: 'quantitative'},
y: {field: 'value', type: 'quantitative'},
}
})
Insert cell
md`## Appendix`
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