-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathindex copy 2.html
171 lines (152 loc) · 4.7 KB
/
index copy 2.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html>
<head>
<title>Plotly.js Devtools</title>
<link
rel="stylesheet"
type="text/css"
href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT"
/>
<link rel="stylesheet" type="text/css" href="./style.css" />
</head>
<body>
<header>
<img
src="http://images.plot.ly/logo/[email protected]"
onClick="Tabs.reload();"
/>
<span id="reload-time"></span>
<input id="mocks-search" type="text" placeholder="mocks search" />
<input id="css-transform" type="text" placeholder="css transform" />
</header>
<section id="mocks-list"></section>
<div id="plots">
<div id="graph">
<div id="tester" style="width: 600px; height: 250px"></div>
</div>
</div>
<div id="snapshot"></div>
<script src="../../node_modules/mathjax-v2/MathJax.js?config=TeX-AMS-MML_SVG"></script>
<script charset="utf-8" id="source" src="../../build/plotly.js">
// type="module"
// import Plotly from "../../build/plotly.js"
</script>
<script charset="utf-8" src="../../build/test_dashboard-bundle.js"></script>
<script>
// let fullData = [
// {
// x: [
// ["AA", "AA", "AA", "BB"],
// // "DD", "DD", "DD", "DD", "BB", "BB"],
// ["DD", "CC", "DD", "DD"],
// ["2", "1", "3", "4"],
// // "VV", "MM", "AA"],
// ],
// y: [10, 8, 11, 12],
// line: {
// color: "orange",
// width: 3,
// },
// // 14, 17, 8, 10, 10, 9],
// // type: "bar",
// },
// {
// x: [
// ["AA", "AA", "AA", "BB"],
// // "DD", "DD", "DD", "DD", "BB", "BB"],
// ["DD", "CC", "DD", "DD"],
// ["2", "1", "3", "4"],
// // "VV", "MM", "AA"],
// ],
// y: [12, 10, 13, 14],
// line: {
// color: "blue",
// width: 3,
// },
// // 14, 17, 8, 10, 10, 9],
// // type: "bar",
// },
// ];
// var trace1 = {
// x: [
// ["AA", "AA", "AA", "BB"],
// ["DD", "CC", "DD", "DD"],
// ["2", "1", "3", "4"],
// ],
// // y: y0,
// // y: [12, 10, 13, 14],
// y: [y0, y1, y2, y3],
// type: "box",
// };
// TESTER = document.getElementById("tester");
// // Plotly.newPlot(TESTER, fullData, {
// // margin: { t: 0 },
// // });
</script>
<script>
var y0 = [];
var y1 = [];
var y2 = [];
var y3 = [];
for (var i = 0; i < 50; i++) {
y0[i] = Math.random();
y1[i] = Math.random() * 10;
y2[i] = Math.random() * 20;
y3[i] = Math.random() * 30;
}
var ys = [y0, y1, y2, y3];
var spreadYs = [...y0, ...y1, ...y2, ...y3];
var trace1 = {
x: [
["AA", "AA", "AA", "BB"],
["DD", "CC", "DD", "DD"],
["2", "1", "3", "4"],
],
// y: y0,
y: spreadYs,
// y: [12, 10, 13, 14],
// y: [y0, y1, y2, y3],
type: "box",
};
var data = [trace1];
// Plotly.newPlot("tester", data);
</script>
<script>
let x1 = [
1111, 1111, 1111, 1111, 2222, 2222, 3333, 3333, 3333, 4444, 4444, 4444,
4444, 1111, 1111, 1111, 2222, 2222, 2222, 4444, 4444, 3333, 4444, 4444,
4444,
];
let x2 = [
1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.2, 1.25, 1.25, 1.25, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.25,
];
let x3 = [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2,
];
let y = [
68.89172741012955, 74.7947463431226, 73.26395158502746,
73.17529436801782, 89.92949351516832, 79.34269143320005,
84.39096735673589, 87.07184294113185, 82.5481218835995,
70.27857346850803, 78.11755050565934, 76.69003807419446,
72.25579607260464, 74.74785526725371, 73.31263433475021,
70.06785817806055, 81.73659630835789, 84.71945002499666,
85.81850329438534, 80.09993832704379, 82.20855460624422,
97.37348751144206, 76.7475232225902, 74.79586728812728,
73.17201742069297,
];
var trace1 = {
x: [x1, x2, x3],
y: y,
type: "box",
};
// var trace2 = {
// x: [x1, x2],
// y: y,
// type: "box",
// };
var data = [trace1];
Plotly.newPlot("tester", data, { margin: { t: 0, l: 50, r: 0 } });
</script>
</body>
</html>