-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (59 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta name="description" content="D3 dataviz templates">
<meta name="keywords" content="Dataviz,D3,JavaScript">
<meta name="author" content="Éléonore Mayola">
<link rel="shortcut icon" href="img/favicon.png">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Courgette" rel="stylesheet">
<script src="https://d3js.org/d3.v4.min.js"></script>
<title>D3 templates</title>
</head>
<body>
<div id="main">
<div class="header">
<img src="img/bar-chart.png" class="app-logo" alt="project logo" />
<h1 class="app-title">D3 templates</h1>
<h3>Reusable code for D3 data viz</h3>
<div class="eean-link">
<p>by
<span><a href="http://elle-est-au-nord.com/" target="_blank"> Elle est <img src="img/compass-logo-small.png" class="eean-logo" alt="Elle est au nord's logo" /> au nord</a></span> </p>
</div>
</div>
<div class="app">
<h4>Templates are in the form of <a href="https://bl.ocks.org/Eleonore9" target="_blank">bl.ocks</a> and you need to change the data source as well as edit the <code>*** EDIT TO CUSTOMISE ***</code> section in the D3 script.</h4>
<div class="templates">
<div class="template">
<div id="barchart" class="viz"></div>
<div class="info">
<h4><span class="badge badge-secondary">Basic bar chart</span></h4>
<p><a href="https://bl.ocks.org/Eleonore9/978e35ff4bbdf53de90c896e2afdc879" target="_blank">See</a> how to reuse the template | Play with it or fork it in <a href="http://blockbuilder.org/Eleonore9/978e35ff4bbdf53de90c896e2afdc879" target="_blank">BlockBuilder</a></p>
</div>
</div>
<div class="template">
<div id="linechart" class="viz"></div>
<div class="info">
<h4><span class="badge badge-secondary">Basic line chart</span></h4>
<p><a href="https://bl.ocks.org/Eleonore9/c1648f9e143ae451a2dd6f044334c31f" target="_blank">See</a> how to reuse the template | Play with it or fork it in <a href="http://blockbuilder.org/Eleonore9/c1648f9e143ae451a2dd6f044334c31f" target="_blank">BlockBuilder</a></p>
</div>
</div>
<div class="template">
<div id="barlinechart" class="viz"></div>
<div class="info">
<h4><span class="badge badge-secondary">Bar+line chart</span></h4>
<p><a href="https://bl.ocks.org/Eleonore9/ca90e6f1166272c93932b56f65aa3746" target="_blank">See</a> how to reuse the template | Play with it or fork it in <a href="http://blockbuilder.org/Eleonore9/ca90e6f1166272c93932b56f65aa3746" target="_blank">BlockBuilder</a></p>
</div>
</div>
</div>
</div>
<footer>Elle est au nord © 2018</footer>
</div>
</body>
<script type="text/javascript" src="js/basic.barchart.js"></script>
<script type="text/javascript" src="js/basic.linechart.js"></script>
<script type="text/javascript" src="js/basic.barlinechart.js"></script>
</html>