Published unlisted
Edited
Apr 23, 2020
Insert cell
md`# Load failure`
Insert cell
{
let canvas = d3
.create('canvas')
.attr('width', 500)
.attr('height', 500);

let img = new Image();
img.src = img_url;

canvas
.node()
.getContext('2d')
.drawImage(img, 0, 0);

return canvas.node();
}
Insert cell
img_url = FileAttachment('parameter_pic.png').url()
Insert cell
d3 = require('d3@5')
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