Public
Edited
Nov 11, 2022
Insert cell
Insert cell
numbers = Array(50).fill().map((_, index) => {return {x: (Math.round(Math.random()*30)), y: (Math.round(Math.random()*30))}})
Insert cell
firstgroup = Array(50).fill().map((_, index) => {return {id: index, group: index %7}})
Insert cell
group0 = aq.from(firstgroup).filter(d=>d.group == 0)
Insert cell
group0.objects().length
Insert cell
meetinglist = {
let m = []
var obj = {}
for (var i = 0; i< group0.objects().length; i++) {
m = m.concat(obj[)
}
return(m)
}
Insert cell
combos = aq.from(numbers)
Insert cell
Plot.plot({
height: 300,
width: 500,
marginBottom: 30,
marks: [
Plot.cell(cooc.objects(),{
x: "x", y: "y", fill: "count"})
],
color: {
scheme: "viridis"
}
})
Insert cell
combos.view()
Insert cell
cooc = combos.groupby('x','y').count()
Insert cell
cooc.objects()
Insert cell
import {aq, op} from "@uwdata/arquero"
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