forked from aggregateknowledge/hash-table-shootout
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcharts-template.html
88 lines (72 loc) · 2.2 KB
/
charts-template.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
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
<html>
<head>
<meta charset="utf-8">
<title>Hash Table Benchmarks</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE]><script language="javascript" type="text/javascript" src="js/excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.flot.js"></script>
</head>
<body>
<script>
series_settings = {
lines: { show: true },
points: { show: true }
};
grid_settings = { tickColor: '#ddd' };
divider = 10
xaxis_settings = {
tickSize: 200000000 / divider, <!-- 200000000 -->
tickFormatter: function(num, obj) { return parseInt(num/1000000) + 'M'; }
};
yaxis_runtime_settings = {
labelWidth: 60,
tickSize: 300 / divider, <!-- -->
tickFormatter: function(num, obj) { return num + ' sec.'; }
};
yaxis_memory_settings = {
labelWidth: 60,
tickSize: 10*1024*1024*1024 / divider, <!-- 1024 -->
tickFormatter: function(num, obj) { return parseInt(num/1024/1024) + 'MB'; }
};
legend_settings = {
position: 'nw',
backgroundOpacity: 0
};
runtime_settings = {
series: series_settings,
grid: grid_settings,
xaxis: xaxis_settings,
yaxis: yaxis_runtime_settings,
legend: legend_settings
};
memory_settings = {
series: series_settings,
grid: grid_settings,
xaxis: xaxis_settings,
yaxis: yaxis_memory_settings,
legend: legend_settings
};
__CHART_DATA_GOES_HERE__
$(function () {
__PLOT_SPEC_GOES_HERE__
});
</script>
<style>
body, * { font-family: sans-serif; }
div.chart {
width: 800px;
height: 500px;
}
div.xaxis-title {
width: 700px;
text-align: center;
font-style: italic;
font-size: small;
color: #666;
}
</style>
__PLOT_DIV_SPEC_GOES_HERE__
</body>
</html>