-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
146 lines (116 loc) · 2.89 KB
/
index.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#container {
width: 1050px;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
padding: 10px;
}
svg {
font: 10px sans-serif;
}
.foreground path {
fill: none;
stroke: #ddd;
}
.axis line,
.axis path {
fill: none;
stroke: #000;
stroke-dasharray: 5,5;
shape-rendering: crispEdges;
}
.axis text {
text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}
text.label {
font: 12px Verdana;
fill: darkgray;
}
.label:hover {
fill: gold;
}
.chart {
margin: auto;
/*float: left;*/
}
.output {
width: 70%;
margin: auto;
font: 12px Verdana;
/*float: left;*/
}
#btn-title {
display: none;
}
fieldset.controls {
padding: 5px;
font-weight: normal;
width: 300px;
}
fieldset.controls label {
font-weight: normal;
width: 280px;
}
fieldset.controls input {
display: inline-block;
width: 150px;
vertical-align: middle;
float: right;
}
div#size {
margin-bottom: 5px;
}
div#ranking {
margin-top: 20px;
margin-right: 30px;
/*background-color: ghostwhite;*/
float: right;
padding: 10px;
}
</style>
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58347729-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id='container'>
<h1>Big-O Selector</h1>
<p>Big-O Selector is tool to make selecting the right data structure easier. It uses parallel coordinates plot to visualize all the supported operations by data structures. Each coordinate represents one operation and all of the operations supported by a given data structure are connected by a line.</p>
<br> <br>
<label>Select Data Source:
<select name="source_select" id="source_select">
<option value="ds.csv" selected>Data Structure</option>
<option value="heap.csv">Heap</option>
</select>
</label> <br>
<div class="chart"></div>
<div class="output">
<div>
<button type="button" class="btn btn-danger" id="btn-title" disabled></button> <br>
</div>
<table class='table table-bordered table-striped' id='tbl_output'></table>
</div>
<div id="ranking"><p>Ranking:</p></div>
<fieldset class='controls'>
<legend>Problem Specification</legend>
<div id="size">
<label>Problem Size<input type="number" min="0" step="1000" value="10000"></label>
</div>
<div id="sliders"></div>
</fieldset>
<div class="debug">
</div>
</div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="ds.js"></script>
</body>