-
Notifications
You must be signed in to change notification settings - Fork 10
/
bubbletree-map.html
56 lines (47 loc) · 1.57 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
54
55
56
---
layout: default
title: 지역별 지출 내역
---
<script src="/js/bubble/bubblemap.js"></script>
<script src="/img/functions/cofog.js"></script>
<script src="/js/lib/dropdown.js"></script>
<script type="text/javascript">
(function ($) {
yepnope([
{ load: OpenSpending.getBubbleMapDependencies('{{site.openspendingjs}}'),
complete: function() {
new OpenSpending.BubbleMap({
loaderText: '데이터를 불러오는 중입니다.',
query: {
dataset: OpenSpending.localData.data,
cuts: ['year:' + OpenSpending.year],
drilldowns: ['cat1', 'cat2'],
breakdown: 'region',
rootNodeLabel: '총액'
},
bubbleStyles: {
'cofog' : OpenSpending.Styles.Cofog
},
map: {
url: '/img/korea.svg',
layerName: 'KR',
keyAttribute: 'region',
legendText: '세출 내역'
},
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">자바스크립트 라이브러리를 불러오는 중입니다.</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 -->