-
Notifications
You must be signed in to change notification settings - Fork 70
/
index.html
48 lines (40 loc) · 1.65 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Bubble Chart v4 - vallandingham.me</title>
<meta name="description" content="Using D3v4 to create a Bubble chart. Based on NYT visualization">
<meta name="author" content="Jim Vallandingham">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/bubble_chart.css">
</head>
<body>
<div class="container">
<h1>Gates Foundation Educational Spending</h1>
<div id="toolbar">
<a href="#" id="all" class="button active">All Grants</a>
<a href="#" id="year" class="button">Grants By Year</a>
</div>
<div id="vis"></div>
<div class="footer">
<p>A demonstration of animated bubble charts in JavaScript and D3.js</p>
<strong>This version of the code uses D3v4!</strong>
<p><a href="http://vallandingham.me/bubble_charts_with_d3v4.html">Blog Post</a> | <a href="https://github.com/vlandham/bubble_chart_v4">Code</a></p>
</div>
</div>
<script src="//d3js.org/d3.v4.min.js"></script>
<script src="src/tooltip.js"></script>
<script src="src/bubble_chart.js"></script>
<!-- PLEASE REMOVE AFTER CLONING -->
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-17355070-1', 'auto');
ga('send', 'pageview');
</script>
<!-- END REMOVE -->
</body>
</html>