-
Notifications
You must be signed in to change notification settings - Fork 0
/
identifiers.html
255 lines (222 loc) · 47.3 KB
/
identifiers.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<meta charset="utf-8">
<title></title>
<style>
.icon {
fill: #ffffff;
}
svg {
font: 7px sans-serif;
}
.g-tooltip {
background-color: rgba(255,255,255,.95);
border: 1px solid #ddd;
padding: 8px;
position: absolute;
pointer-events: none;
font-family: nyt-franklin, Arial, sans-serif;
box-shadow: 1px 1px 1px #ddd;
display: none;
min-width: 200px;
}
.g-tooltip-title {
font-size: 12px;
margin: 1px 0 5px 0;
float: left;
font: sans-serif;
}
.g-tooltip-obs {
font-size: 14px;
padding-top: 3px;
padding-bottom: 3px;
margin: 1px 0 5px 0;
padding-top: 3px;
font: sans-serif;
}
.g-tooltip-heading {
font-size: 14px;
padding-top: 3px;
padding-bottom: 0px;
margin: 1px 0 5px 0;
padding-top: 3px;
font: sans-serif;
}
.g-tooltip-topobserver {
text-transform: uppercase;
font: 10px sans-serif;
margin: 1px 0 5px 0;
padding-top: 6px;
}
</style>
<body>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://d3js.org/queue.v1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script src="country_stats/jquery.ba-bbq.min.js"></script>
<script>
$(document).ready(function() {
const urlParams = $.deparam( window.location.search.replace( /^\?/, "" ) );
document.title = urlParams.name.toUpperCase() + " identifiers";
window.mobilecheck = function() {
var check = false;
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera);
return check;
}
var format = d3.format("0,000");
var margin = {top: 50, right: 50, bottom: 0, left: 50},
width = 500 - margin.left - margin.right,
height = 300 - margin.top - margin.bottom;
var x = d3.scale.linear()
.domain( [1, 5] )
.range( [margin.left+40, width + margin.right ] );
var svg = d3.select("body").append("svg")
.attr("viewBox", "0 0 " + (width + margin.left + margin.right) + " " + (height + margin.top + margin.bottom))
.attr("preserveAspectRatio", "xMinYMin meet");
svg.append("rect").attr("x", 0)
.attr("class","extent")
.attr("y", 0)
.style("fill","none")
.attr("width", (width + margin.left + margin.right))
.attr("height", height);
var urlByPlace_id = d3.map();
var ratioByPlace_id = d3.map();
var formatSuffix = d3.format(".1s");
queue()
.defer(d3.json, "country_stats/identifier/identifiers_" + urlParams.name + ".json?" + Math.floor(Math.random() * 1000))
.await(renderGraph);
var tooltip = d3.select("body").append("div")
.attr("class", "g-tooltip")
.html("");
function renderGraph(error, nodes) {
var nodes = nodes.filter(function(d) {return d.obs_count > 0})
var max = d3.max(nodes.map(function(d){return d.obs_count}));
var min = d3.min(nodes.map(function(d){return d.obs_count}));
var z = d3.scale.log()
.domain([min, max])
.range([25, 60]);
var profiles = svg.selectAll(".profiles")
.data(nodes)
.enter().append("g")
.attr("transform", function(d, i) { return "translate(" + x((i)%5+1) + "," + (100+height/2 * Math.floor((i)/5)) + ")"; });
profiles.append("circle")
.attr("class","profiles")
.style("fill", "#E56B25")
.style("fill-opacity", "0.5")
.attr("r", function(d) { return z(d.obs_count) } )
var g = profiles.append("g").attr("transform", function(d) { return "translate(" + -50 * z(d.obs_count) / 50 + "," + -50 * z(d.obs_count) / 50 + ")scale(" + z(d.obs_count) / 50 + ")"; });
g.filter(function(d) { return d.group == "Plants"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M48.8,32.6c0.6-1,0.7-2.4-0.1-3.2c-0.9-1-2.4-0.8-3.6-0.1c-0.5-0.2-1-0.1-1.4,0.3c-0.4,0.4-0.7,0.9-0.9,1.4c-0.6,1.2-1.1,2.8-0.2,3.8c0.9,0.9,2.4,0.5,3.5,0C47.2,34.2,48.2,33.5,48.8,32.6z M77.2,61.4c-3.2,1.2-6.1,3.3-8.9,5.3c0.3-0.2,0.7,0.2,0.6,0.5c-0.1,0.3-0.4,0.5-0.7,0.7c-3.9,2.5-6.7,6.5-8.5,10.8c-0.4,1-0.8,2.1-1.1,3.2c-0.2-3.2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9,40.4,27.6,41.4,28.3z M34.7,33.5c1,0,2,0,3,0c-0.1,0.3-0.2,0.5-0.2,0.8c-0.3,0-0.5-0.1-0.8-0.1c-0.7-0.1-1.5-0.2-2.2-0.3C34.6,33.7,34.7,33.6,34.7,33.5z M34,33.5l-0.5,0.2c-0.2,0-0.5-0.1-0.7-0.1c-0.1-0.1-0.1-0.1-0.2-0.2C33.1,33.4,33.6,33.4,34,33.5z")
//"
g.filter(function(d) { return d.group == "Insects"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M88.1,49C78.8,41.2,68.6,34.7,57.7,30l0,0c-0.1-0.9-0.3-1.8-0.8-2.6c0.7-1.7,0.9-3.6,0.6-5.4c-1,0.9-1.8,2.2-2.1,3.6c-1.2-0.8-2.6-1.1-4-1c-0.1-0.1-0.2-0.2-0.3-0.3c1-2.1,3.3-3.1,5.4-3.4c2.3-0.4,4.6-0.2,6.8-1.1c1.6-0.6,2.9-1.8,3.9-3.3c-1.9,1.9-4.3,3.1-6.9,3.4c-1.9,0.2-3.9-0.1-5.8,0.4c-1.7,0.4-3.4,1.8-3.8,3.6c-0.9-1.7-2.5-3.4-4.1-2.7c-1,1.3-1.6,2.8-1.9,4.5l-0.3-0.3c-0.2-0.8-0.8-1.3-1.5-1.6c-0.7-0.2-1.4-0.2-2.2-0.2c-1.7,0-3.4,0.1-5,0.7c-2.2,0.9-4,3-6.3,3.4c1.6,0.7,3.4-0.1,4.9-1s2.9-2.2,4.6-2.5c1.9-0.4,3.7,0.3,5.4,1.4l-0.9-0.1c0.2,0.1,0.4,0.1,0.6,0.2c0.1,0,0.2,0,0.3,0c0.1,0,0.1,0.1,0.2,0.1c-0.2,0-0.3,0-0.5-0.1c-2.5,0.3-4.4,3.3-4.1,6.1c0,0.1,0,0.2,0,0.2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.1,0.1c-1.4-2-3.6-3.3-5.9-3.2c1.4,1.6,2.9,3.1,4.6,4.3c-9.5,8-18.7,16.4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2-3.2,5.2-4.1c-1.1,2.1-0.1,5.3,2,6.2C24.3,71.7,22.6,72,21.1,71.6z M26.1,70.3c-0.5-3-0.9-6.1-1.1-9.2c1.8-1.4,3.5-2.9,5.3-4.3l0.8-0.5C30.5,61.4,29.7,67.1,26.1,70.3z M41,45.1c-3.4,7.8-6.8,15.6-10.2,23.3c-0.4-0.5-0.4-1.1-0.3-1.7c0.5-8.7,4-17.2,9.7-23.3c0.1-0.1,0.2-0.2,0.3-0.2l0-0.1c0.4-0.1,0.8,0.3,0.8,0.8S41.2,44.7,41,45.1z M42.9,26.9l1.1,0.8c-1.9,1.8-1.5,5.1-0.8,7.8c0.3,1.4,0.6,2.9,1,4.3C40.5,36.9,39.9,30.5,42.9,26.9z M45.5,25.6C45.5,25.5,45.5,25.5,45.5,25.6C45.5,25.5,45.5,25.5,45.5,25.6C45.5,25.6,45.5,25.6,45.5,25.6z M56.1,25.7c0,0.1-0.1,0.3-0.1,0.4c0,0-0.1-0.1-0.1-0.1L56.1,25.7z M52.6,59.6c-2.9-4.8-3.9-10.9-2.7-16.5l1,0.4c1.5,2.2,3,4.5,3.1,7.2C54.1,53.8,52.2,56.6,52.6,59.6z M55.7,37.4c-0.1-3.9-0.9-7.7-2.3-11.2l0.3-0.1C56.8,28.7,57.7,33.8,55.7,37.4z M60.2,43.8c-0.4-0.7-0.9-1.5-1.3-2.2l0.8-0.2c3,1.5,5.4,4.1,7,7.3c0.9,1.8,1.5,3.8,2.1,5.8c0.8,2.6,1.5,5.2,2.3,7.8C67.4,56.1,63.8,50,60.2,43.8z M76.2,57.2c-0.1,1.5-0.2,3-0.3,4.5c-1.1-0.2-1.7-1.3-2.3-2.4c-1.5-3.1-3-6.1-4.5-9.2c0.2-0.2,0.5-0.3,0.7-0.5l1.2,0.9c-0.3-0.2-0.6-0.3-0.9-0.5c1.7,1.5,3.3,3.1,5,4.6c0.4,0.4,0.8,0.7,0.9,1.2C76.2,56.3,76.2,56.8,76.2,57.2z M75.4,48.1c-0.7,0.1-1.5-0.2-2.1-0.6c-1.9-1.2-3.4-3.1-4.9-4.9c-2.3-2.7-4.9-5.1-7.7-7.2l0.1-1.3c0.7,0.2,1.3,0.4,2,0.7c4.8,1.9,8.9,5.6,12.8,9.2c0.8,0.7,1.6,1.6,1.4,2.7C76.9,47.5,76.1,48.1,75.4,48.1z M83.6,61.5c-0.5,1.2-1.9,1.6-3.1,1.6s-2.5-0.2-3.5,0.5c0.8-2.1,1.2-4.4,1.1-6.6c0.1,0.1,0.2,0.2,0.4,0.2c-0.2-0.4-0.5-0.7-0.6-1.2l0.9,1.3c-0.1-0.1-0.2-0.1-0.3-0.2c1,1.4,2.4,2.5,4.1,2.8c0.4,0.1,0.8,0.1,1,0.5C83.8,60.7,83.8,61.1,83.6,61.5z M90.2,55c-0.3,1.5-1.5,2.4-2.7,3.2c0-1.8-0.3-3.6-0.9-5.3c-0.2-0.6-0.9-1.4-1.3-0.9c-0.3,2.1-0.3,4.2,0.3,6.2c-1.5-2.3-3.4-4.4-5.4-6.2c-0.3-0.3-0.7-0.6-0.8-1c-0.1-0.3,0-0.6,0.1-0.9c0.3-1,0.6-2,1-3.1l-1-0.4c2.5,0.9,4.9,2.1,7.3,3.4C88.5,51,90.6,52.8,90.2,55z");
g.filter(function(d) { return d.group == "Birds"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M86.6,80.8c0-4-3.5-6.9-6.4-9.7c-3-2.9-5.5-6.3-7.7-9.8c0.7,0.3,1.4,0.6,2.1,1c-0.3-1.4-1.2-2.5-2.3-3.4c0.4,0.1,0.7,0.1,1.1,0.2c2.2,0.4,4.4,0.8,6.6,1c-1-0.9-2-1.7-2.9-2.6c0.3,0,0.7,0,1,0c-3.8-1.8-7.2-4.6-9.7-8c0.6,0.1,1.2,0.1,1.8-0.1c-0.8-0.1-1.2-1.1-1.6-1.8c-0.6-1-1.5-1.8-2.3-2.5c-2.6-2.1-5.2-4-8-5.8c-2.6-2.9-5.5-5.5-8.9-7.4c-2.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0.5C54.2,40.8,53.8,41,53.4,41L53.4,41C53.4,41,53.4,41,53.4,41c-0.1,0-0.1,0-0.2,0c0.4-0.4,0.7-0.9,1.1-1.3c1.5-1.9,3.1-3.7,4.9-5.4c0.9-0.8,1.9-1.6,3-2c1.6-0.6,3.3-0.6,4.9-1.2C61.7,33,57,36.5,53.4,41z");
g.filter(function(d) { return d.group == "Molluscs"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M58,35.2c-1.8-4.1-5.2-7.4-9-9.8c-8.2-5.2-18.8-6.3-27.9-3.1c-6.7,2.4-10.4,9.6-11.7,16.6c-0.9,4.8-1,10,1,14.4c2.2,5,6.8,8.8,12,10.5c5.2,1.7,10.9,1.6,16.2,0.2c1.7-0.4,3.3-1,4.7-1.9c1.4-0.9,2.5-2.2,3.4-3.7c0.1,0.1,0.3,0.1,0.4,0.1c2.5,0.4,5-0.8,7.1-2.3c2.2-1.5,4.1-3.4,5.7-5.4c1.2,0.4,2.4,0.7,3.5,1.1c3.9,1.7,5.8,6.3,9.5,8.3c-0.4,3.6-0.8,7.1-1.5,10.6c-0.1,0.6-0.2,1.2-0.5,1.7c-0.2,0.4-0.5,0.7-0.6,1.1c-0.1,0.7,0.7,1.4,1.4,1.3c0.7-0.1,1.3-0.9,1.3-1.6c0-0.6-0.2-1.1-0.3-1.7c-0.4-1.9,0-3.8,0.6-5.6c0.6-1.8,1.5-3.4,2.2-5.2c1.4-0.3,2.5-1.7,2.8-3.2c0.3,0.1,0.5,0.1,0.8,0.1c1.4,0.2,2.8,0.1,4.2,0.3c2.2,0.3,4.2,1.3,6.2,2.3c0.5,0.2,1,0.5,1.5,0.7c0.3,0.2,0.7,0.3,1.1,0.4c1,0.1,1.9-0.9,1.7-1.9c0-0.2-0.1-0.4-0.2-0.5c-0.2-0.2-0.4-0.2-0.7-0.3c-5.2-1-10.3-2.8-15-5.2c-0.2-0.1-0.3-0.1-0.5-0.2c-0.3-0.5-0.6-1-0.9-1.5c-3.2-4.9-7.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,2.1C72.2,39.1,71,39,69.7,38.7z M40.5,49.3C40.5,49.3,40.5,49.3,40.5,49.3C40.5,49.3,40.5,49.3,40.5,49.3C40.5,49.3,40.5,49.3,40.5,49.3z M37.5,48.1c1,0.4,1.9,0.8,2.9,1.2c-0.9-0.5-1.8-1-2.7-1.5L37.5,48.1z");
g.filter(function(d) { return d.group == "Reptiles and Amphibians"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M25.2,24.5c0-0.1-0.1-0.2-0.2-0.1c-0.1,0-0.2,0.1-0.1,0.2C24.9,24.6,25.1,24.6,25.2,24.5c0.1,0,0.1-0.2,0-0.3L25.2,24.5z M63.8,30.8c-3-3.3-6.9-6-11.2-6.9c-2.9-0.6-5.9-0.4-8.9-0.4C37.8,23.6,32,23,26.4,21.7c-0.7-0.2-1.3-0.3-2-0.2c-0.7,0.1-1.2,0.6-1.8,1c-1,0.8-2,1.6-3.1,2.3c-0.6,0.5-1.3,1.1-1.1,1.8c0.1,0.4,0.4,0.6,0.8,0.9c2.2,1.5,4.9,2.1,7.5,2.6c3,0.6,6.1,1.3,9.1,2.1c0.8,2,2.8,3.4,4.9,3.4c-0.8,0.2-1.4,0.8-2,1.3s-1.7,0.6-2.2,0c0.2,0.4,0.5,0.8,0.7,1.2c-1.4,0.8-3,1.4-4.5,1.8c0.8,0.4,1.7,0.4,2.5,0.2c-1.8,0.8-3.3,1.9-4.6,3.4c1.5-1.1,3.1-1.9,4.8-2.6c0.6-0.2,1.4-0.4,1.9,0.1c-0.6,0.9-0.3,2.2,0.6,2.9c-0.4-1-0.3-2.3,0.4-3.2c0.5-0.7,1.2-1.1,1.9-1.5c1.9-1.2,3.7-2.6,5.5-4c0,0,0,0,0,0c0,0,0,0-0.1,0c-0.5-0.4-0.6-1-0.9-1.6c-0.3-0.5-0.7-1-1.2-1.4c-0.6-0.2-1.2-0.3-1.8-0.7c0.6,0.1,1.2,0.3,1.8,0.7c0.9,0.2,1.9,0.4,2.5,1.1c0.4,0.3,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-1.7,2.9c4.9-10.7,13.8-19.5,17.6-30.6c0.7-2,1.2-4,1.2-6.1c0-4.4-2.2-8.5-4.4-12.3C69.1,37.9,66.8,34,63.8,30.8z M19.9,26.6c-0.3-0.3-0.2-0.9,0.2-1.1c0,0-0.1-0.1,0-0.1c0,0,0.1,0,0.2,0c0.3,0,0.5,0.2,0.7,0.4C20.4,25.7,19.9,26.1,19.9,26.6z M25.9,24.5c-0.1,0.3-0.3,0.6-0.5,0.7c-0.3,0.2-0.8,0.2-1.1-0.1c-0.1-0.1-0.1-0.2-0.2-0.2c0,0-0.1,0-0.2,0c0.1-0.1,0.1-0.1,0.2-0.2c0,0,0,0,0,0c0-0.1,0.1-0.2,0.1-0.3c0,0,0-0.1,0.1-0.1l0,0.1c0.2-0.2,0.4-0.3,0.6-0.4c0.3-0.1,0.7,0,1,0.3C25.9,24.3,25.9,24.3,25.9,24.5C25.9,24.4,25.9,24.4,25.9,24.5z M30.7,28c-0.4,0.2-1,0.1-1-0.4c0.6-0.1,1.2-0.5,1.5-1.1c-0.1-0.1-0.2-0.3-0.2-0.4c0,0,0-0.1-0.1-0.1l0.2-0.2c0,0,0,0,0,0c-0.1,0-0.2-0.1-0.1-0.1c0-0.1,0.2,0,0.2,0.1c0,0,0,0,0,0c0,0,0,0,0,0l0,0c-0.1,0.1-0.1,0.2-0.1,0.3C31.5,26.7,31.3,27.7,30.7,28z");
g.filter(function(d) { return d.group == "Fishes"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M84.8,42.5c-0.4-0.1-0.8,0.1-1,0.4c-0.5,0.2-0.9,0.8-0.9,1.4c0.1,0.8,0.9,1.5,1.7,1.4c0.8-0.1,1.5-0.9,1.4-1.8C86,43.2,85.5,42.6,84.8,42.5z M91,47c0.5-0.6,1.1-1.3,1.6-1.9C85.5,39.2,77.7,33,68.5,32.3c-0.3-1.3-0.6-2.7-1-4c-0.1,0.6-1.2,0.6-1.4,0c-0.3-0.6,0-1.3,0.2-1.9c-1-0.3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2.2c1.5-0.8,3.2-1.3,4.9-2c3.6-1.5,6.7-4,9-7.1c-1.2,0.7-2.7,1-4.1,0.9c0.1,0,0.2-0.1,0.3-0.1c-2.5,0.5-5.2-0.3-6.6-2.3c-0.4-0.6-0.7-1.3-0.9-2.1c-0.5-1.7-0.6-3.5-0.2-5.3l0.3,0.3c-0.5,0.1-0.5,0.9-0.3,1.4c0.8,2.5,1.9,5.2,4.2,6.4c1.8,1,4,0.9,6.1,0.7c3.3-1.4,6.4-3.3,9.1-5.6C91.9,47.7,91.4,47.4,91,47z M85.7,46.9c-1,0.5-2.3,0.4-3.3-0.1c-0.8-0.4-1.4-1.2-1.5-2.1c0-0.4,0.1-0.8,0.2-1.2c0.4-1.1,1.2-2.2,2.4-2.4c1.9-0.4,3.7,1,4.2,2.8C88.1,45.1,86.7,46.5,85.7,46.9z");
g.filter(function(d) { return d.group == "Mammals"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M73.8,32.6c-4.5-0.7-9.3,0.7-12.8,3.7l-0.7,0c1.1-0.8,2.2-1.6,3.2-2.4c-6.6-3.1-14.7-3-21.2,0.3c-4.8,2.4-9.3,7.2-10,12.6c-0.1,0.5-0.1,1-0.3,1.5c-0.3,0.8-1.1,1.2-1.9,1.5c-0.8,0.2-1.6,0.2-2.5,0.3c-1.3,0.1-2.9,0.3-4.1,0.7c-3.8,1.3-6.4,4.6-8.8,7.8c-2,2.8-4.1,6.2-3.1,9.6c1.5-3.2,3-6.5,5.3-9.3c2.3-2.8,5.5-5,9-5.3c2.7-0.3,5.7,0.5,8.1-1c0.2-0.1,0.5-0.3,0.6-0.6c0.6-1.1-0.9-3,0.3-3.5c-0.2,2.2,1.3,4.3,3.3,5.1c2.3,1,4.9,0.7,7.3,0.2c-0.1-0.5-0.1-1-0.2-1.5c0.8,0.2,1.4,1.2,1.2,2c1.5,1.3,3.9,1.5,5.5,0.3c-1,1.2-0.4,2.9,0.2,4.3c0.4-0.1,0.9-0.2,1.3-0.3c0.2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6,0.1,1.3,0.6,1.7c0-0.7,0.9-1.1,1.6-0.9s1.2,0.8,1.6,1.4c0.4-0.5,0.8-1,1.3-1.3c-1.7-1-3.6-1.6-5.5-1.8C36.8,55,36.2,55.5,35.9,56.1z M37.8,54.5c-0.2,0-0.3,0.1-0.4,0.3c0,0,0.1,0,0.1,0c0.1,0,0.2-0.1,0.3-0.1L37.8,54.5z");
g.filter(function(d) { return d.group == "Other Species"; }).append("path").attr("class","icon").attr("pointer-events", "none").attr("d","M16.3,37.9c-0.3,0.5,0,3.7,0,3.7c1.7-0.9,8,0.4,6.4-3.5c-0.4-0.9-1.9-2.4-2.7-0.9c-0.5-0.3-0.4-1.1-0.1-1.7c1.6-4.4,2-9.3,0.9-13.9c1,5.5-0.9,11-2.9,16.2c-1.8-2.2-4.7-3.2-7-5c-1.2-0.9-2.2-2.1-3.2-3.2c0.2,2.1,2,3.8,3.8,4.9C13,35.6,15,36.4,16.3,37.9z M20,49.6c-0.2,0-0.4,0.1-0.6,0.2c0,0-0.1,0-0.1,0c0,0,0,0,0,0c-0.2,0.2-0.3,0.6-0.3,0.9c0,0.6,0.4,1.2,0.8,1.7c2.1-1.4,4.3-2.4,6.7-3.1c0.6-0.5,0.1-1.5-0.6-1.7c-0.7-0.2-1.4,0.1-2.1,0.3C22.5,48.5,21.3,49,20,49.6z M27.4,50.1c-2.6,0.4-5.1,1.7-6.9,3.6c0.1,0.2,0.3,0.3,0.5,0.4c-0.1,0.2-0.2,0.4-0.2,0.6c-0.2,0.8,0.3,1.8,1.1,1.9c0.1-0.2,0.2-0.3,0.3-0.4c1-0.8,1.9-1.6,2.9-2.3c0.3-0.1,0.5-0.2,0.8-0.3l-0.3-0.1c0.7-0.5,1.5-1,2.3-1.5C27.9,51.3,27.7,50.7,27.4,50.1z M30.6,53.9L29,51.7c0-0.1,0-0.3,0-0.4c0.6,0.4,1.5,0.1,1.9-0.5c0.4-0.7,0.3-1.5,0.2-2.3s-0.4-1.6-0.2-2.3c-0.5,1.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1-0.1-0.3-0.2-0.4-0.2l-0.1-0.4c0,0.3-0.5,0.7-0.6,1.1c0,0.4,0.3,0.7,0.6,0.9c2.7,1.9,5.2,4.2,7.3,6.7C89.2,53.7,87.4,52,85.8,50.7z M81.6,46.9l0.1,0.2C81.6,47,81.6,46.9,81.6,46.9z M80.2,52.8c0.2,0.1,0.3,0.2,0.4,0.2c0.1-0.1,0.3-0.2,0.4-0.2L80.2,52.8z M80.3,54.8c0.5,0.8,1.5,1.2,2.4,1.6c1.9,0.9,3.7,2.2,5,3.9c-1.5-3.1-4-5.7-7-7.3C80.2,53.4,80,54.3,80.3,54.8z M81.1,52.8l0.3,0C81.3,52.8,81.2,52.8,81.1,52.8z M79.5,60.7l-0.1,0.1C79.4,60.8,79.4,60.8,79.5,60.7C79.4,60.7,79.4,60.7,79.5,60.7z M78.9,61.7c2.6,2.8,6.1,4.7,9.8,5.3c-3.4-1.6-6.6-3.7-9.4-6.2C79.2,61,79,61.3,78.9,61.7z M79.5,60.7l0.8-0.5C79.9,60.3,79.7,60.4,79.5,60.7z M68.8,59.8l-0.2,0.1c-1.6,3.2-2.9,6.5-4.1,9.9c2.5-1.5,3.7-4.5,4.8-7.2C69.6,61.6,69.8,60.2,68.8,59.8z M68.1,54.1c1-0.6,1.7-1.9,1.1-3l0.1,0.3c0,0.9-1,1.3-1.9,1.5c-3,0.9-5.8,2.6-8,4.9c1.6-1.3,3.4-2.2,5.4-2.7C65.9,54.9,67.1,54.7,68.1,54.1z M69.4,45.2l0.4,0.1C69.9,45.1,69.6,45.1,69.4,45.2z M69.4,45.2L69.1,45c-2.8,0.3-5.6,1-8.2,2.2c2.5-0.1,5-0.2,7.4-0.3c0.5,0,1.1-0.2,1.2-0.6c0-0.3-0.2-0.6-0.2-0.9C69.3,45.3,69.4,45.2,69.4,45.2z M69.4,39.7C69.4,39.7,69.4,39.7,69.4,39.7c0.1,0,0.2,0,0.3-0.1L69.4,39.7z M69.4,39.7c-2.8,0.8-5.3,2.5-7.1,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,1.8,1.9,3.8,3.7,4.7c0.3-0.3,0.1-0.8-0.1-1.2C55.3,56.6,54.7,55.5,54,54.4z M47.8,59l-0.1-0.2C47.8,58.9,47.8,59,47.8,59c-0.2,0.1-0.3,0.2-0.4,0.3c0.1-0.1,0.2-0.1,0.4,0c0.1,1.9,0.6,3.7,1.4,5.4c0.5-2,0.5-4.2-0.3-6.1C48.5,58.7,48.2,58.8,47.8,59z M48,59.5c0.1,0.1,0.2,0.3,0.1,0.4L48,59.5z M41,63.3c-0.2,0.1-0.3,0.4-0.5,0.5s-0.6-0.1-0.4-0.3l-0.2,0.1c-0.6,1.7-0.1,3.8,1.3,4.9c0.2-1.3,0.4-2.7,0.6-4C41.8,63.9,41.6,63,41,63.3z M23.7,61.2c0.1,0.2,0.1,0.3,0.2,0.5c0.4,0,0.7,0,1.1,0L23.7,61.2z M19.9,61.3c1.4,1.3,3.3,1.9,5.2,1.8c-0.5-0.4-0.8-0.9-1.1-1.4C22.6,61.7,21.2,61.6,19.9,61.3z M20,54.9c-1.4,0-2.9-0.3-4.2-0.9c1.1,1.1,2.5,1.8,4,2C19.7,55.6,19.8,55.2,20,54.9z M20.5,56.1c-0.3,0-0.5,0-0.7-0.1c0,0.2,0.1,0.3,0.2,0.5L20.5,56.1z M17.1,49.5c0.1,0.3,0.4,0.5,0.6,0.3L17.4,49c-0.1,0-0.1-0.1-0.2-0.1C17.1,49,17.1,49.3,17.1,49.5z M17.2,48.6c0.1-0.9-0.4-1.7-1.1-2.2c-0.7-0.5-1.6-0.7-2.4-0.9c0.9,1.3,2.1,2.4,3.5,3.3C17.2,48.8,17.2,48.7,17.2,48.6z M48.8,28.2l-0.1,0.3C48.8,28.4,48.9,28.3,48.8,28.2z M47.2,29.5c0.4-0.6,0.9-1.1,1.5-1.6c0-0.1-0.1-0.1-0.2-0.1c-1.6-0.9-3.2-1.7-4.9-2.4c0,0,0.1,0.1,0.1,0.1C44.9,26.9,46,28.2,47.2,29.5z M41.8,24.7c0.6,0.2,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-5.5-0.4l-0.2,0.3c-0.1,1-0.2,2-0.3,3c0,0.2,0,0.5,0.1,0.6c0.2,0.1,0.4,0,0.6,0c0.5,0,0.9,0.4,1.4,0.7c1.3,0.7,2.8-0.2,4-1.1C77,62.6,77.1,61.8,77.2,61z M16.9,43.7l0.4,0.5c-0.1,0.8,0,1.6,0.3,2.4c0,0.1,0.1,0.3,0.2,0.4c0.1,0.1,0.3,0,0.4,0c1.9-0.6,3.9-1.2,5.8-1.9c-0.2-0.8-0.5-1.6-0.7-2.3c-0.1-0.2-0.1-0.4-0.3-0.5c-0.1-0.1-0.3-0.1-0.5-0.1C20.6,42,18.6,42.6,16.9,43.7z");
//"
var groups = svg.selectAll(".node")
.data(nodes)
.enter().append("g")
.attr("transform", function(d, i) { return "translate(" + x((i)%5+1) + "," + (40+6*height/10 * Math.floor((i)/5)) + ")"; });
groups
.append("circle")
.attr("r", 20)
.attr("class",function(d){return "group_"+d.group.replace(" ","_").replace(" ","_");})
.style("fill", "white")
.style("stroke", "black")
.style("stroke-width", 0.25);
groups
.append("clipPath")
.attr("id","clipCircle")
.append("circle")
.attr("r", 20)
.attr("cx",0)
.attr("cy",0);
groups
.append("image")
.attr("xlink:href", function(d) {
if(d.icon_url == null){
return "https://www.inaturalist.org/attachment_defaults/users/icons/defaults/thumb.png";
}else{
return d.icon_url.replace("medium","thumb");
}})
.attr("x", -20)
.attr("y", -20)
.attr("width",20*2)
.attr("height", 20*2)
.attr("class","img-circle")
.attr("clip-path",function(d) { return "url(identifiers.html?name=" + urlParams.name + "#clipCircle)"; })
.style("pointer-events", "all")
.on("mouseover", showTooltip )
.on("mouseout", removeTooltip)
.on("click", function(d){
if(!window.mobilecheck()){
var url = "https://www.inaturalist.org/observations?verifiable=true&taxon_ids="+d.taxon_id_string+"&view=identifiers"
window.open(url);
}
});
}
function showTooltip(d) {
var element = d3.selectAll(".group_"+d.group.replace(" ","_").replace(" ","_"));
var extent = d3.selectAll(".extent");
element.style("stroke", "#000")
.style("stroke-width", "2px");
var position = [element.position().left, element.position().top]; //using an element - responsive (extended prototype)
if(position[0]<(300/2)){
position[0] = 0;
}else if(position[0]>(extent.position().width - 300/2 - 2)){
position[0] = extent.position().width - 300 - 20;
}else{
position[0] -= 300/2
}
if(position[1]<(extent.position().height/2)){
position[1] += 80;
}else{
position[1] -= 120;
}
html = "<div id='textbox'>\
<div class='g-tooltip-heading'>" + d.group + "</div>"
html += "</div>\
<div style='clear: both;'></div>\
<div class='g-tooltip-obs'><b>" + format(d.obs_count) + "</b> observations</div>\
<div style='clear: both;'></div>\
<div class='g-tooltip-topobserver'>TOP Identifier</div>\
<div style='clear: both;'></div>\
<div class='g-tooltip-title'><b>" + d.login + "</b></div>";
tooltip
.style("left", position[0] + "px")
.style("top", position[1] + "px")
.style("display", "block")
.html(html);
}//function showTooltip
//Hide the tooltip when the mouse moves away
function removeTooltip(d) {
var element = d3.selectAll(".group_"+d.group.replace(" ","_").replace(" ","_"));
element.style("stroke", "#fff")
.style("stroke-width", ".5px");
tooltip.style("display", "none");
}//function removeTooltip
d3.selection.prototype.position = function() {
var el = this.node();
var elPos = el.getBoundingClientRect();
var vpPos = getVpPos(el);
function getVpPos(el) {
if(el.parentNode.nodeName === 'svg') {
return el.parentNode.getBoundingClientRect();
}
return getVpPos(el.parentNode);
}
return {
top: elPos.top - vpPos.top,
left: elPos.left - vpPos.left,
width: elPos.width,
bottom: elPos.bottom - vpPos.top,
height: elPos.height,
right: elPos.right - vpPos.left
};
};
d3.select(self.frameElement).style("height", height + "px");
});
</script>