-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
98 lines (87 loc) · 5.64 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
<!DOCTYPE html>
<html>
<head>
<title>Rho Graphics - Visualizations</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="./img/favicon.ico">
<script src='https://d3js.org/d3.v3.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/showdown/dist/showdown.min.js'></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./main.css">
</head>
<body>
<div class="w3-top">
<div class="w3-bar rho-green w3-card w3-left-align w3-large">
<a class="w3-bar-item w3-button w3-hide-medium w3-hide-large w3-right w3-padding-large w3-hover-white w3-large w3-red" href="javascript:void(0);" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
<a href="https://rhoinc.github.io/graphics/" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Home</a>
<a href="https://rhoinc.github.io/publication-library/" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Publications</a>
<a href="https://rhoinc.github.io/viz-library/" class="w3-bar-item w3-button w3-padding-large w3-white">Visualizations</a>
<a href="https://rhoinc.github.io/data-library/" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Data</a>
<a href="https://rhoinc.github.io/blog/" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Blog</a>
<a href="https://www.github.com/RhoInc" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white"><i class="fa fa-github"></i></a>
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium w3-large">
<a href="https://rhoinc.github.io/graphics/" class="w3-bar-item w3-button w3-padding-large">Home</a>
<a href="https://rhoinc.github.io/publication-library/" class="w3-bar-item w3-button w3-padding-large">Publications</a>
<a href="https://rhoinc.github.io/data-library/" class="w3-bar-item w3-button w3-padding-large">Data</a>
<a href="https://rhoinc.github.io/blog/" class="w3-bar-item w3-button w3-padding-large">Blog</a>
<a href="https://www.github.com/RhoInc" class="w3-bar-item w3-button w3-padding-large"><i class="fa fa-github"></i></a>
</div>
</div>
<!-- Header -->
<header class="w3-container rho-blue w3-center">
<div class="pre-head"><img src="./img/logo-transparent.png" height="24px" width="24px"></img>Graphics</div>
<h1 class="w3-jumbo">Visualization Library</h1>
</header>
<div class="w3-row-padding w3-padding-16 w3-container" style="position:relative">
<div class="w3-content">
<h1>About</h1>
<h5>This page contains examples of statistical graphics created at <a href="http://www.rhoworld.com">Rho</a>. These examples are fully reproducible and <a href="http://www.github.com/RhoInc/">open source</a> to support sharing and learning.</h5>
</div>
</div>
<div class="w3-row-padding w3-padding-16 w3-container" style="position:relative">
<div class="section w3-content" id="Examples">
<h1>Visualizations <span class="controls"></span></h1>
<div class="examples"></div>
</div>
</div>
<!-- Footer -->
<footer class="w3-container w3-padding-32 w3-center w3-opacity">
<div class="w3-xlarge w3-padding-32">
<a href = 'https://www.facebook.com/Rho-447248761980030/'><i class="fa fa-facebook-official w3-hover-opacity"></i></a>
<a href = 'https://www.instagram.com/rhoworld/'><i class="fa fa-instagram w3-hover-opacity"></i></a>
<a href = 'https://twitter.com/rhoworld/'><i class="fa fa-twitter w3-hover-opacity"></i></a>
<a href = 'https://www.linkedin.com/company/rho/'><i class="fa fa-linkedin w3-hover-opacity"></i></a>
</div>
<div class="footer">
<p><i class="fa fa-envelope-o"></i> <a href="mailto:graphics@rhoworld.com"><span>graphics@rhoworld.com</span></a></p>
<p>© <a href="http://www.rhoworld.com">Rho, Inc.</a> 2016-2019 - <a href="http://www.rhoworld.com/rho/terms-conditions">Terms and Conditions</a></p>
</div>
</footer>
</body>
<script src='./build/vizLibrary.js'></script>
<script>
d3.json('./data/examples.json',function(error,json){
var examples = json.sort(function(a,b){return b.examples.length - a.examples.length})
vizLibrary.buildExampleList(".examples",examples)
})
d3.json('./data/lastUpdate.json',function(error,json){
console.log(json)
d3.select("footer").append("p").text("Last Update: "+json.date)
})
// Used to toggle the menu on small screens when clicking on the menu button
function myFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
</html>