-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathdepth-chart.html
More file actions
118 lines (105 loc) · 3.19 KB
/
Copy pathdepth-chart.html
File metadata and controls
118 lines (105 loc) · 3.19 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>High-Performance Depth Chart</title>
<style>
body {
margin: 0;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #0a0a0a;
color: #ffffff;
}
.chart-container {
position: relative;
width: 100%;
height: 600px;
background: #111111;
border: 1px solid #333;
border-radius: 8px;
overflow: hidden;
}
#depthChart {
display: block;
cursor: crosshair;
}
.controls {
margin-top: 20px;
display: flex;
gap: 15px;
align-items: center;
}
.control-group {
display: flex;
align-items: center;
gap: 8px;
}
label {
font-size: 12px;
color: #999;
text-transform: uppercase;
letter-spacing: 0.5px;
}
select, button {
background: #1a1a1a;
color: #fff;
border: 1px solid #333;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
}
button:hover {
background: #2a2a2a;
border-color: #555;
}
.performance-stats {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.8);
padding: 8px;
border-radius: 4px;
font-size: 11px;
font-family: monospace;
color: #0f0;
}
</style>
</head>
<body>
<h1>Decentralized Exchange Depth Chart</h1>
<div class="chart-container">
<canvas id="depthChart"></canvas>
<div class="performance-stats" id="perfStats">
FPS: <span id="fps">0</span> |
Render: <span id="renderTime">0</span>ms |
Mouse: <span id="mouseLatency">0</span>ms
</div>
</div>
<div class="controls">
<div class="control-group">
<label for="scaleType">Scale:</label>
<select id="scaleType">
<option value="linear">Linear</option>
<option value="logarithmic">Logarithmic</option>
</select>
</div>
<div class="control-group">
<label for="dataPoints">Data Points:</label>
<select id="dataPoints">
<option value="100">100</option>
<option value="500">500</option>
<option value="1000">1000</option>
<option value="5000">5000</option>
</select>
</div>
<div class="control-group">
<button id="toggleAnimation">Toggle Animation</button>
<button id="regenerateData">Regenerate Data</button>
</div>
</div>
<script src="depth-chart.js"></script>
</body>
</html>