-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbubbletree-map.html
56 lines (49 loc) · 1.63 KB
/
bubbletree-map.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
---
layout: default
title: Country and Regional Analysis
---
<script src="{{site.openspendingjs}}/app/bubblemap/bubblemap.js"></script>
<script src="/img/functions/cofog.js"></script>
<script type="text/javascript">
(function ($) {
yepnope([
{ load: OpenSpending.getBubbleMapDependencies('{{site.openspendingjs}}'),
complete: function() {
new OpenSpending.BubbleMap({
openspendingjs: '{{site.openspendingjs}}',
query: {
apiUrl: 'https://legacy.openspending.org/api',
dataset: 'ukgov-finances-cra',
cuts: ['year:2010'],
drilldowns: ['cofog1', 'cofog2', 'cofog3'],
breakdown: 'region',
rootNodeLabel: 'Total'
},
bubbleStyles: {
'cofog-1': BubbleTreeStyles.Cofog1,
'cofog-2': BubbleTreeStyles.Cofog2,
'cofog-3': BubbleTreeStyles.Cofog3
},
map: {
url: '/img/gbr.svg',
layerName: 'GBR',
keyAttribute: 'region',
legendText: 'Expenditure on'
},
table: { show: false }
});
}
}
]); // yepnope()
})(jQuery)
</script>
<div id="wdmmg-bubblemap">
<div id="preloader" style="text-align: center; padding: 100px"><img src="/img/ajax-loader.gif" style="vertical-align:top" /> <span class="txt">loading javascript libraries</span></div>
<div id="wdmmg-bt">
<div class="bubbletree-wrapper">
<div id="wdmmg-bubbletree" class="bubbletree"></div>
</div>
</div>
<div id="wdmmg-map-legend" class="under-curtain"></div>
<div id="wdmmg-map" class="under-curtain"></div>
</div><!-- /#wdmmg-bubblemap -->