tmp
10 months ago in HTML
<head>
<!-- Plotly.js -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>

<body>
<div id="myDiv"><!-- Plotly chart will be drawn inside this DIV --></div>

<script>
var y0=[],y1=[]
for ( i = 0; i < 50; i ++)
{
y0[i] = Math.random();
y1[i] = Math.random();
}

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

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

var data = [trace1, trace2];

Plotly.newPlot('myDiv', data, {}, {showSendToCloud: false});

</script>
</body>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32