-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (26 loc) · 941 Bytes
/
index.html
File metadata and controls
32 lines (26 loc) · 941 Bytes
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
<head>
<!-- Plotly.js -->
<script src="plotly-latest.min.js"></script>
</head>
<body>
<div id="cpuDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<div id="memoryDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<div id="swapDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<div id="pcpuDiv"></div>
<div id="memDiv"></div>
<script src="cpu.js"></script>
<script src="memory.js"></script>
<script src="process.js"></script>
<script>
/* var data = {
x:[1,2,3,4],
y:[3,4,5,6],
type:"scatter"
};*/
Plotly.newPlot('cpuDiv',data,layout);
Plotly.newPlot('memoryDiv',memData,memlayout);
Plotly.newPlot('swapDiv',swapData,swaplayout);
Plotly.newPlot('memDiv',procMemory,layoutMemory);
Plotly.newPlot('pcpuDiv',procCPU,layoutCPU)
</script>
</body>