forked from null2/circular-migration-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (92 loc) · 1.93 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
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Circular Migration Plot</title>
<script src="dist/circular-migration-plot.js"></script>
<style>
body {
font: 15px/1.8em Arial, sans-serif;
margin: 0;
text-align: center;
}
svg {
font-size: 12px;
max-width: 100%;
vector-effect: non-scaling-stroke;
}
.info, .label {
pointer-events: none;
}
.info text {
fill: white;
}
#circle circle {
fill: none;
pointer-events: all;
}
text {
cursor: default;
fill: #333;
}
.group-arc + text {
-webkit-transition: opacity 0.4s;
-moz-transition: opacity 0.4s;
-o-transition: opacity 0.4s;
transition: opacity 0.4s;
}
.group-arc.animate + text {
opacity: 0;
}
#circle path {
-webkit-transition: opacity 0.4s;
-moz-transition: opacity 0.4s;
-o-transition: opacity 0.4s;
transition: opacity 0.4s;
}
#circle:hover path.fade,
#circle path.unselected {
opacity: 0;
pointer-events: none;
}
text.fade {
opacity: 0;
}
.group-arc {
cursor: pointer;
}
text.region {
font-weight: bold;
}
.chord {
opacity: 0.75;
}
.chord:hover {
opacity: 1;
}
</style>
</head>
<body>
<header>
<h1>Circular Migration Plot</h1>
</header>
<div id=timeline></div>
<div id=chart></div>
<footer>
<small>© 2014 null2 GmbH Berlin</small><br>
<small>This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc/3.0/">Creative Commons Attribution-NonCommercial 3.0 Unported License</a>.</small>
</footer>
<script>
CircularMigrationPlot({
data: 'sample.json',
chart: '#chart',
timeline: {
element: '#timeline',
formatter: function(d) {
return d + '–' + (d + 5)
}
}
});
</script>
</body>
</html>