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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<html>
  <head>
    <meta charset="utf-8" />
    <script
      src="https://cdn.plot.ly/plotly-2.20.0.min.js"
      charset="utf-8"
    ></script>
  </head>
  <body>
    <div>
      <script type="text/javascript">
        window.PlotlyConfig = { MathJaxConfig: "local" };
      </script>

      <script src="projectdata.js"></script>

      <div id="myPlot"></div>
      <script type="text/javascript">
        window.PLOTLYENV = window.PLOTLYENV || {};
        Plotly.newPlot(
          "myPlot",
          projectData,
          {
            coloraxis: { showscale: true },
            height: 500,
            hovermode: "x unified",
            legend: {
              bgcolor: "rgba(17,17,17,0)",
              bordercolor: "rgba(17,17,17,0)",
              borderwidth: 2,
              font: { color: "black", size: 14 },
              itemsizing: "constant",
              title: { font: { color: "black" }, text: " " },
              tracegroupgap: 0,
              traceorder: "normal",
              x: 0,
              xanchor: "auto",
              y: 1,
              yanchor: "auto",
            },
            margin: { b: 0, l: 0, pad: 2, r: 0, t: 0 },
            scene: {
              camera: {
                center: { x: -0.4, y: 0, z: 0 },
                eye: { x: 0.4, y: -1.58, z: 0.3 },
              },
              domain: { x: [0.0, 1.0], y: [0.0, 1.0] },
              xaxis: { title: { text: "" } },
              yaxis: { title: { text: "" } },
              zaxis: { title: { text: "" } },
            },
            template: {
              data: {
                bar: [
                  {
                    error_x: { color: "#2a3f5f" },
                    error_y: { color: "#2a3f5f" },
                    marker: {
                      line: { color: "white", width: 0.5 },
                      pattern: {
                        fillmode: "overlay",
                        size: 10,
                        solidity: 0.2,
                      },
                    },
                    type: "bar",
                  },
                ],
                barpolar: [
                  {
                    marker: {
                      line: { color: "white", width: 0.5 },
                      pattern: {
                        fillmode: "overlay",
                        size: 10,
                        solidity: 0.2,
                      },
                    },
                    type: "barpolar",
                  },
                ],
                carpet: [
                  {
                    aaxis: {
                      endlinecolor: "#2a3f5f",
                      gridcolor: "#C8D4E3",
                      linecolor: "#C8D4E3",
                      minorgridcolor: "#C8D4E3",
                      startlinecolor: "#2a3f5f",
                    },
                    baxis: {
                      endlinecolor: "#2a3f5f",
                      gridcolor: "#C8D4E3",
                      linecolor: "#C8D4E3",
                      minorgridcolor: "#C8D4E3",
                      startlinecolor: "#2a3f5f",
                    },
                    type: "carpet",
                  },
                ],
                choropleth: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    type: "choropleth",
                  },
                ],
                contour: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    colorscale: [
                      [0.0, "#0d0887"],
                      [0.1111111111111111, "#46039f"],
                      [0.2222222222222222, "#7201a8"],
                      [0.3333333333333333, "#9c179e"],
                      [0.4444444444444444, "#bd3786"],
                      [0.5555555555555556, "#d8576b"],
                      [0.6666666666666666, "#ed7953"],
                      [0.7777777777777778, "#fb9f3a"],
                      [0.8888888888888888, "#fdca26"],
                      [1.0, "#f0f921"],
                    ],
                    type: "contour",
                  },
                ],
                contourcarpet: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    type: "contourcarpet",
                  },
                ],
                heatmap: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    colorscale: [
                      [0.0, "#0d0887"],
                      [0.1111111111111111, "#46039f"],
                      [0.2222222222222222, "#7201a8"],
                      [0.3333333333333333, "#9c179e"],
                      [0.4444444444444444, "#bd3786"],
                      [0.5555555555555556, "#d8576b"],
                      [0.6666666666666666, "#ed7953"],
                      [0.7777777777777778, "#fb9f3a"],
                      [0.8888888888888888, "#fdca26"],
                      [1.0, "#f0f921"],
                    ],
                    type: "heatmap",
                  },
                ],
                heatmapgl: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    colorscale: [
                      [0.0, "#0d0887"],
                      [0.1111111111111111, "#46039f"],
                      [0.2222222222222222, "#7201a8"],
                      [0.3333333333333333, "#9c179e"],
                      [0.4444444444444444, "#bd3786"],
                      [0.5555555555555556, "#d8576b"],
                      [0.6666666666666666, "#ed7953"],
                      [0.7777777777777778, "#fb9f3a"],
                      [0.8888888888888888, "#fdca26"],
                      [1.0, "#f0f921"],
                    ],
                    type: "heatmapgl",
                  },
                ],
                histogram: [
                  {
                    marker: {
                      pattern: {
                        fillmode: "overlay",
                        size: 10,
                        solidity: 0.2,
                      },
                    },
                    type: "histogram",
                  },
                ],
                histogram2d: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    colorscale: [
                      [0.0, "#0d0887"],
                      [0.1111111111111111, "#46039f"],
                      [0.2222222222222222, "#7201a8"],
                      [0.3333333333333333, "#9c179e"],
                      [0.4444444444444444, "#bd3786"],
                      [0.5555555555555556, "#d8576b"],
                      [0.6666666666666666, "#ed7953"],
                      [0.7777777777777778, "#fb9f3a"],
                      [0.8888888888888888, "#fdca26"],
                      [1.0, "#f0f921"],
                    ],
                    type: "histogram2d",
                  },
                ],
                histogram2dcontour: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    colorscale: [
                      [0.0, "#0d0887"],
                      [0.1111111111111111, "#46039f"],
                      [0.2222222222222222, "#7201a8"],
                      [0.3333333333333333, "#9c179e"],
                      [0.4444444444444444, "#bd3786"],
                      [0.5555555555555556, "#d8576b"],
                      [0.6666666666666666, "#ed7953"],
                      [0.7777777777777778, "#fb9f3a"],
                      [0.8888888888888888, "#fdca26"],
                      [1.0, "#f0f921"],
                    ],
                    type: "histogram2dcontour",
                  },
                ],
                mesh3d: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    type: "mesh3d",
                  },
                ],
                parcoords: [
                  {
                    line: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "parcoords",
                  },
                ],
                pie: [{ automargin: true, type: "pie" }],
                scatter: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scatter",
                  },
                ],
                scatter3d: [
                  {
                    line: { colorbar: { outlinewidth: 0, ticks: "" } },
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scatter3d",
                  },
                ],
                scattercarpet: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scattercarpet",
                  },
                ],
                scattergeo: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scattergeo",
                  },
                ],
                scattergl: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scattergl",
                  },
                ],
                scattermapbox: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scattermapbox",
                  },
                ],
                scatterpolar: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scatterpolar",
                  },
                ],
                scatterpolargl: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scatterpolargl",
                  },
                ],
                scatterternary: [
                  {
                    marker: { colorbar: { outlinewidth: 0, ticks: "" } },
                    type: "scatterternary",
                  },
                ],
                surface: [
                  {
                    colorbar: { outlinewidth: 0, ticks: "" },
                    colorscale: [
                      [0.0, "#0d0887"],
                      [0.1111111111111111, "#46039f"],
                      [0.2222222222222222, "#7201a8"],
                      [0.3333333333333333, "#9c179e"],
                      [0.4444444444444444, "#bd3786"],
                      [0.5555555555555556, "#d8576b"],
                      [0.6666666666666666, "#ed7953"],
                      [0.7777777777777778, "#fb9f3a"],
                      [0.8888888888888888, "#fdca26"],
                      [1.0, "#f0f921"],
                    ],
                    type: "surface",
                  },
                ],
                table: [
                  {
                    cells: {
                      fill: { color: "#EBF0F8" },
                      line: { color: "white" },
                    },
                    header: {
                      fill: { color: "#C8D4E3" },
                      line: { color: "white" },
                    },
                    type: "table",
                  },
                ],
              },
              layout: {
                annotationdefaults: {
                  arrowcolor: "#2a3f5f",
                  arrowhead: 0,
                  arrowwidth: 1,
                },
                autotypenumbers: "strict",
                coloraxis: { colorbar: { outlinewidth: 0, ticks: "" } },
                colorscale: {
                  diverging: [
                    [0, "#8e0152"],
                    [0.1, "#c51b7d"],
                    [0.2, "#de77ae"],
                    [0.3, "#f1b6da"],
                    [0.4, "#fde0ef"],
                    [0.5, "#f7f7f7"],
                    [0.6, "#e6f5d0"],
                    [0.7, "#b8e186"],
                    [0.8, "#7fbc41"],
                    [0.9, "#4d9221"],
                    [1, "#276419"],
                  ],
                  sequential: [
                    [0.0, "#0d0887"],
                    [0.1111111111111111, "#46039f"],
                    [0.2222222222222222, "#7201a8"],
                    [0.3333333333333333, "#9c179e"],
                    [0.4444444444444444, "#bd3786"],
                    [0.5555555555555556, "#d8576b"],
                    [0.6666666666666666, "#ed7953"],
                    [0.7777777777777778, "#fb9f3a"],
                    [0.8888888888888888, "#fdca26"],
                    [1.0, "#f0f921"],
                  ],
                  sequentialminus: [
                    [0.0, "#0d0887"],
                    [0.1111111111111111, "#46039f"],
                    [0.2222222222222222, "#7201a8"],
                    [0.3333333333333333, "#9c179e"],
                    [0.4444444444444444, "#bd3786"],
                    [0.5555555555555556, "#d8576b"],
                    [0.6666666666666666, "#ed7953"],
                    [0.7777777777777778, "#fb9f3a"],
                    [0.8888888888888888, "#fdca26"],
                    [1.0, "#f0f921"],
                  ],
                },
                colorway: [
                  "#000",
                  "#000",
                  "#000",
                  "#000",
                  "#000",
                  "#000",
                  "#000",
                  "#000",
                  "#000",
                  "#FECB52",
                ],
                font: { color: "#2a3f5f" },
                geo: {
                  bgcolor: "red",
                  lakecolor: "white",
                  landcolor: "white",
                  showlakes: true,
                  showland: true,
                  subunitcolor: "#C8D4E3",
                },
                hoverlabel: { align: "left" },
                hovermode: "closest",
                mapbox: { style: "light" },
                paper_bgcolor: "white",
                plot_bgcolor: "white",
                polar: {
                  angularaxis: {
                    gridcolor: "#EBF0F8",
                    linecolor: "#EBF0F8",
                    ticks: "",
                  },
                  bgcolor: "white",
                  radialaxis: {
                    gridcolor: "#EBF0F8",
                    linecolor: "#EBF0F8",
                    ticks: "",
                  },
                },
                scene: {
                  xaxis: {
                    backgroundcolor: "white",
                    gridcolor: "#DFE8F3",
                    gridwidth: 2,
                    linecolor: "#EBF0F8",
                    showbackground: true,
                    ticks: "",
                    zerolinecolor: "#EBF0F8",
                  },
                  yaxis: {
                    backgroundcolor: "white",
                    gridcolor: "#DFE8F3",
                    gridwidth: 2,
                    linecolor: "#EBF0F8",
                    showbackground: true,
                    ticks: "",
                    zerolinecolor: "#EBF0F8",
                  },
                  zaxis: {
                    backgroundcolor: "white",
                    gridcolor: "#DFE8F3",
                    gridwidth: 2,
                    linecolor: "#EBF0F8",
                    showbackground: true,
                    ticks: "",
                    zerolinecolor: "#EBF0F8",
                  },
                },
                shapedefaults: { line: { color: "#2a3f5f" } },
                ternary: {
                  aaxis: {
                    gridcolor: "#DFE8F3",
                    linecolor: "#A2B1C6",
                    ticks: "",
                  },
                  baxis: {
                    gridcolor: "#DFE8F3",
                    linecolor: "#A2B1C6",
                    ticks: "",
                  },
                  bgcolor: "white",
                  caxis: {
                    gridcolor: "#DFE8F3",
                    linecolor: "#A2B1C6",
                    ticks: "",
                  },
                },
                title: { x: 0.05 },
                xaxis: {
                  automargin: true,
                  gridcolor: "#EBF0F8",
                  linecolor: "#EBF0F8",
                  ticks: "",
                  title: { standoff: 15 },
                  zerolinecolor: "#EBF0F8",
                  zerolinewidth: 2,
                  visible: false,
                  show: false,
                  hidden: true,
                },
                yaxis: {
                  automargin: true,
                  gridcolor: "#EBF0F8",
                  linecolor: "#EBF0F8",
                  ticks: "",
                  title: { standoff: 15 },
                  zerolinecolor: "#EBF0F8",
                  zerolinewidth: 2,
                  visible: false,
                  show: false,
                  hidden: true,
                },
              },
            },
            // itt van a width
            width: window.innerWidth - 170,
            height: window.innerHeight - 50,
            xaxis: {
              automargin: false,
              showgrid: false,
              showline: true,
              showspikes: false,
              showticklabels: true,
              zeroline: false,
            },
            yaxis: {
              automargin: false,
              showgrid: false,
              showline: true,
              showspikes: false,
              showticklabels: true,
              zeroline: false,
            },
          },
          { responsive: true }
        );

        // rotate by using time, around the center of the plot
        // x: 0.4, y: -1.88, z: 0.3
        var cnt = 1;

        var interval = setInterval(function () {
          Plotly.relayout(
            "myPlot",
            {
              "scene.camera.eye.x": 0.4 * cnt,
              // "scene.camera.eye.y": -1.88 * Math.sin(cnt),
              // "scene.camera.eye.z": 0.3 * cnt,
            },
            [0]
          );
          if (cnt > 2) clearInterval(interval);
          cnt += 0.001;
        }, 1);


        document.addEventListener("click", function () {
          clearInterval(interval);
        });
        document.addEventListener("mousedown", function () {
          clearInterval(interval);
        });
      </script>
    </div>
  </body>
</html>