-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinspect-flame.html
48 lines (47 loc) · 1.24 KB
/
inspect-flame.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="statics/font-roboto.css">
<link rel="stylesheet" type="text/css" href="statics/d3.flameGraph.css">
<style>
body { margin: 0; font-family: Roboto, sans-serif }
#chart { margin: 10px 50px }
.d3-flame-graph rect {
stroke: #ececec;
fill-opacity: .8;
}
.d3-flame-graph rect:hover {
fill: #A5D;
stroke: #FFF;
stroke-width: 1;
cursor: pointer;
}
.d3-flame-graph .label {
color: #690000;
line-height: 1.8;
}
.d3-flame-graph g:hover .label {
color: #FFF;
}
.d3-flame-graph .fade {
opacity: 0.4 !important;
}
#chart-label {
text-align: center;
margin-bottom: 1em;
}
</style>
</head>
<body>
<div class="container">
<div id="chart"></div>
<div id="chart-label"></div>
</div>
<script src="statics/d3.v3.min.js"></script>
<script src="statics/d3.tip.v0.6.3.js"></script>
<script src="statics/d3.flameGraph.js"></script>
<script src="inspect-flame-data.js"></script>
<script src="inspect-flame.js"></script>
</body>
</html>