DmitrMakeev commited on
Commit
369a276
1 Parent(s): 26420ac

Delete graf.html

Browse files
Files changed (1) hide show
  1. graf.html +0 -48
graf.html DELETED
@@ -1,48 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
4
- <body>
5
-
6
- <div id="myPlot" style="width:100%;max-width:700px"></div>
7
-
8
- <script>
9
- // Пример даты и времени
10
- const xArray = [
11
- new Date(2022, 0, 1, 0),
12
- new Date(2022, 0, 1, 1),
13
- new Date(2022, 0, 1, 2),
14
- new Date(2022, 0, 1, 3),
15
- new Date(2022, 0, 1, 4),
16
- new Date(2022, 0, 1, 5),
17
- new Date(2022, 0, 1, 6),
18
- new Date(2022, 0, 1, 7),
19
- new Date(2022, 0, 1, 8),
20
- new Date(2022, 0, 1, 9),
21
- new Date(2022, 0, 1, 10)
22
- ];
23
-
24
- const yArray = [7,8,8,9,9,9,10,11,14,14,15];
25
-
26
- // Define Data
27
- const data = [{
28
- x: xArray,
29
- y: yArray,
30
- mode: "lines"
31
- }];
32
-
33
- // Define Layout
34
- const layout = {
35
- xaxis: {
36
- title: "Date and Time",
37
- type: 'date'
38
- },
39
- yaxis: {range: [5, 16], title: "Price in Millions"},
40
- title: "House Prices vs. Time"
41
- };
42
-
43
- // Display using Plotly
44
- Plotly.newPlot("myPlot", data, layout);
45
- </script>
46
-
47
- </body>
48
- </html>