-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvisualization.html
117 lines (100 loc) · 3.27 KB
/
visualization.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
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Bar Chart Example</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/normalize.css/normalize.css">
<link rel="stylesheet" href="assets/css/bar-chart.css">
<style type="text/css">
.chart-body {
height: 400px;
width: 400px;
border: solid 1px #333;
border-width: 0 0 1px 1px;
display: flex;
justify-content: space-around;
align-items: flex-end;
}
.bar {
width: 50px;
color: white;
}
.bar>div {
display: flex;
justify-content: center;
align-items: center;
}
.y-axis {
display: flex;
flex-direction: column;
}
.y-tic {
border-top: solid 1px #333;
height: 49px;
width: 10px;
padding-right: 15px;
line-height: 2;
text-align: right;
}
.x-axis {
display: flex;
flex-direction: row-reverse;
justify-content: space-around;
padding-top: 10px;
}
</style>
</head>
<body>
<div class="chart">
<h1>Bar Chart Example</h1>
<div class="row">
<div class="y-axis">
<div class="y-tic">400</div>
<div class="y-tic">350</div>
<div class="y-tic">300</div>
<div class="y-tic">250</div>
<div class="y-tic">200</div>
<div class="y-tic">150</div>
<div class="y-tic">100</div>
<div class="y-tic">50</div>
<div class="y-tic">0</div>
</div>
<div class="column">
<div class="chart-body">
<div class="bar">
<div>300</div>
<div class="bg-red" style="height: 100px">100</div>
<div class="bg-yellow" style="height: 100px">100</div>
<div class="bg-green" style="height: 100px">100</div>
</div>
<div class="bar">
<div class="bg-red" style="height: 50px">50</div>
<div class="bg-yellow" style="height: 50px">50</div>
<div class="bg-green" style="height: 50px">50</div>
</div>
<div class="bar">
<div class="bg-red" style="height: 125px">125</div>
<div class="bg-yellow" style="height: 125px">125</div>
<div class="bg-green" style="height: 125px">125</div>
</div>
<div class="bar">
<div class="bg-red" style="height: 75px">75</div>
<div class="bg-yellow" style="height: 75px">75</div>
<div class="bg-green" style="height: 75px">75</div>
</div>
</div>
<!-- Options - child order or row-reverse -->
<div class="x-axis">
<div class="x-label">2015</div>
<div class="x-label">2014</div>
<div class="x-label">2013</div>
<div class="x-label">2012</div>
</div>
</div>
</div>
</div>
</body>
</html>