Published
Edited
Mar 25, 2021
1 fork
15 stars
Insert cell
Insert cell
Insert cell
//canvas = html`<canvas width=640 height=480>`
Insert cell
Insert cell
//ctx = canvas.getContext("2d")
Insert cell
Insert cell
//ctx.clearRect(0, 0, canvas.width, canvas.height)
Insert cell
Insert cell
// {
// ctx.fillStyle = "orange";
// ctx.fillRect(0, 0, canvas.width, canvas.height);
// }
Insert cell
Insert cell
// {
// ctx.beginPath();
// ctx.moveTo(100, 100);
// ctx.lineTo(200, 200);
// ctx.lineWidth = 10;
// ctx.lineTo(100, 200);
// ctx.closePath();
// ctx.fillStyle = 'green';
// ctx.fill();
// ctx.strokeStyle = "purple";
// ctx.stroke();
// }
Insert cell
Insert cell
// {
// ctx.beginPath()
// ctx.arc (200,200,50,0,Math.PI*2)
// ctx.fillStyle = "#FF0"
// ctx.fill()
// ctx.stroke()
// }
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