Published
Edited
Feb 6, 2019
Insert cell
Insert cell
Insert cell
{
var y0 = [];
var y1 = [];
var y2 = [];
for (var i = 0; i < 50; i ++) {
y0[i] = Math.random();
y1[i] = Math.random() + 1;
y2[i] = Math.random() + 3;
}

var trace1 = {
y: y0,
type: 'box'
};

var trace2 = {
y: y1,
type: 'box'
};
var trace3 = {
y: y2,
type: 'box'
};

var data = [trace1, trace2, trace3];

const div = DOM.element('div');
Plotly.newPlot(div, data, {width: width});
return div;
}
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