tx:()=>(x,y)=>({x,y})// optional, this transform changes [0,1] into {x: 0, y: 1}
})){
pts.push(p);
yieldpts;
}
}
Plot.rect(
iterator({
slope:4,
cols:80,
rows:23
}),
{
x:"0",
y:"1",
interval:1,
fill:(d,i)=>i
}
).plot({aspectRatio:1})
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.