-
Notifications
You must be signed in to change notification settings - Fork 2
/
facultymajor.html
62 lines (61 loc) · 1.03 KB
/
facultymajor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
svg {
font: 10px sans-serif;
background: white;
display:block;
margin:0 auto;
}
button {
clear:right;
float:right;
}
.chart rect {
stroke: white;
}
.line {
fill:none;
stroke:#000;
stroke-width:1.5px;
}
.axis path, .axis line {
fill:none;
stroke:#000;
shape-rendering: crispEdges;
}
.grid {
fill:none;
stroke-width:0.5px;
stroke:#000;
opacity:0.2;
}
.ratio {
fill:#f2c180;
}
.fsratio {
fill:#f3a53d;
}
.students {
fill:#5cadf0;
}
.faculty {
fill:steelblue;
}
#wrap {
width:910px;
margin:0 auto;
}
</style>
</head>
<body>
<div id="wrap">
<button onClick="ascending()">↑</button>
<button onClick="descending()"s>↓</button>
</div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="facultymajor.js"></script>
</body>
</html>