Published
Edited
Oct 19, 2020
Fork of Template
1 star
Insert cell
Insert cell
svg = {
const svg = html`<svg id = "svg"></svg>`
const container = d3.select(svg)

for(let i = 0; i < 50; i = i + 1){
const x = math.randomInt(0,600)
const y = math.randomInt(0,300)
const s = math.random(0,.5)
makeFace(container,x,y,s)
}
return svg
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
math = require('mathjs@6.2.1/dist/math.js')
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