Skip to content

Commit

Permalink
updated bubbletree
Browse files Browse the repository at this point in the history
- added title on tooltip for bubblemap
- fixed a bug bgColor is not appeared
  • Loading branch information
thechunsik committed Jan 30, 2015
1 parent 699fb2b commit bf6ef67
Show file tree
Hide file tree
Showing 5 changed files with 2,270 additions and 2,262 deletions.
68 changes: 34 additions & 34 deletions bubbletree-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@

<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()
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" /> &nbsp;<span class="txt">자바스크립트 라이브러리를 불러오는 중입니다.</span></div>
<div id="preloader" style="text-align: center; padding: 100px"><img src="/img/ajax-loader.gif" style="vertical-align:top" /> &nbsp;<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-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-legend" class="under-curtain"></div>

<div id="wdmmg-map" class="under-curtain"></div>
<div id="wdmmg-map" class="under-curtain"></div>


</div><!-- /#wdmmg-bubblemap -->
5 changes: 3 additions & 2 deletions css/bubblemap/map.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#wdmmg-bt {
margin-left: 130px;
width: 550px;
}

Expand Down Expand Up @@ -61,7 +62,7 @@

#wdmmg-map {
position: absolute;
left: 540px;
left: 670px;
top: 50px;
width: 390px;
height: 500px;
Expand All @@ -80,7 +81,7 @@

#wdmmg-map-legend {
position: absolute;
left: 540px;
left: 670px;
top: 30px;
width: 100px;
height: 200px;
Expand Down
Loading

0 comments on commit bf6ef67

Please sign in to comment.