-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
302 lines (272 loc) · 15.8 KB
/
Copy pathindex.html
File metadata and controls
302 lines (272 loc) · 15.8 KB
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<html ng-app="ktbe">
<head>
<title>Die Finanzen des Kantons Bern</title>
<!--
kanton-bern-finanzen https://github.com/KeeTraxx/kanton-bern-finanzen
Copyright (C) 2015 Khôi Tran
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="css/d3.slider.css"/>
<link rel="stylesheet" href="//rawgithub.com/Caged/d3-tip/master/examples/example-styles.css">
<link rel="stylesheet" href="css/style.css"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="application/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="application/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.4.8/d3.min.js"></script>
<script type="application/javascript"
src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-route.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-resource.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-sanitize.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.10.0/ui-bootstrap-tpls.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3-tip/0.6.3/d3-tip.min.js"></script>
<script src="js/lorem.js"></script>
<script type="application/javascript" src="js/d3.slider.js"></script>
<script type="text/javascript">
var $buoop = {
vs: {i: 10, f: 15, o: 12.1, s: 5.1},
l: 'de',
//test: true,
onshow: function (infos) {
//document.getElementById('content').innerHTML = '';
}
};
$buoop.ol = window.onload;
window.onload = function () {
try {
if ($buoop.ol) $buoop.ol();
} catch (e) {
}
var e = document.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", "//browser-update.org/update.js");
document.body.appendChild(e);
}
</script>
</head>
<body>
<div id="content" ng-view>
</div>
<script type="text/ng-template" id="infotemplate">
<div class="modal-header">
<span style="float: right; cursor: pointer" ng-click="$close()">✖</span>
<h3 class="modal-title">{{d.name}}</h3>
</div>
<div class="modal-body" ng-bind-html="d.description">
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="$close()">Schliessen</button>
</div>
</script>
<script type="text/ng-template" id="breadcrumbs">
<li ng-click="filter.code = ''" title="Ansicht zurücksetzen">Alle Einnahmen und Ausgaben</li>
<li ng-repeat="node in breadcrumbs" ng-click="filter.code == node.code">{{node.name}}</li>
</script>
<script type="text/ng-template" id="index">
<div id="slider" slider></div>
<div id="vis">
<svg visualization xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
<defs>
<path id="bear" fill-rule="evenodd" stroke-miterlimit="10" d="M-10.241-35.604
l1.168-0.303l1.252,0.303l0.773,0.782l-0.731,0.773l-2.025,1.118l-0.647-0.689l-0.479-1.076L-10.241-35.604z M-26.834-39.311
l-0.345,1.555l-0.042,1.546l0.209,1.682l0.689,0.908l-0.126,1.597l0.345,0.387l0.992-1.16l1.117,0.294l1.816,1.126l1.807,1.597
l0.521,1.42l0.252,1.849l-0.345,0.782l-2.925-2.765l-3.362-2.068l-3.497-2.581l-1.379-2.328l-0.26-1.723l0.605-1.429l-0.816-1.201
L-33.045-40l-1.765,0.991l-1.21,1.858l0.092,2.883l1.63,1.765l2.286,1.682l3.32,1.555l5.001,1.941l2.546,1.076l0.26,0.731
l-3.622,0.177l-0.689-1.471h-0.48l-0.21,0.95l-0.739,1.033l0.092,1.168l0.773,0.21l3.278,0.739l4.909,1.849l2.807,1.597
l1.422,1.034l1.378-1.252l0.605-1.504l0.647-0.387l0.218,0.639l-0.563,1.042l0.042,1.976l1.723,1.774l1.336,3.185l0.134,3.018
l-0.823,7.498l-1.421,5.69l-0.042,2.891l0.209,0.992l0.093,1.202l-1.034-1.462l-0.521-2.194l-1.724-1.512l-1.723-1.505
l-0.438-1.681l-0.941-1.21l-1.126-0.126l-1.463,0.042l-1.723,0.857l-0.387,0.782l0.689-0.26l0.43,0.563l-0.731,0.857l-1.379,0.95
l0.042,0.858l1.16,0.092l-0.21,0.647l-1.042,0.942l-0.47,1.941l0.604-0.125l-0.042,2.882l0.731-0.689l0.95,0.092l0.125,0.899
l0.345,1.514l0.689,0.604l0.731-1.252l1.034-0.386l0.698,1.16l2.539,1.118l3.059,1.513l1.639,0.428l2.068,0.387l1.21,0.302
l0.815-0.252l1.336-0.782l0.647-1.892l0.647-1.083l0.218-1.462l0.907-0.127l0.253,0.899l0.563-0.042l0.176-2.581l0.647-1.211
l0.294-2.546l0.782-0.168l0.606,0.949l0.428-0.092l0.218-2.413l0.773-1.42L3.383-1.16l0.388-2.547l0.73-1.336L4.459-8.708
l-0.815-1.294l0.042-0.899l0.731,0.084l0.991,1.463l0.177,3.059L4.98-3.144L4.207-0.689l0.083,0.866l2.371,0.21l2.025,0.387
l2.11-0.042l0.563,0.647l-1.253,0.689l-2.37,0.824L5.325,4.052L4.374,5.816l0.127,2.077l0.647,3.403l1.731,4.606l-0.521,1.429
L4.333,15.86L3.56,14.523L1.745,13.28l-0.9,0.084l-2.244,1.681l-0.605,1.202h0.95l-0.219,0.739l-0.95,1.766l0.74-0.042l0.513,0.596
l-1.597,1.43l0.092,1.201l0.689-0.428l0.303,0.345l-0.563,1.808l0.387,0.52l0.815-0.908l0.437,0.522l0.042,1.806l0.563,0.731
l0.647-0.773l0.983-0.816l1.471,0.597l2.841,1.336l3.018,1.083l1.941,0.042l1.984-0.646l1.857-2.328l0.428-2.674l0.345-2.891
l0.563-0.387l1.077,1.033l0.083-3.748l0.134-3.447l-0.992-2.109l0.689-2.329l1.118-1.773l0.95-0.773L18.26,8.531l-0.05,3.664
l1.689,3.707l4.219,6.816l4.531,6.036l-1.034,0.125l-2.161-2.16l-1.202-0.042l-1.428,0.479l-1.641,0.386l-1.201-1.033l-1.555-0.26
l-1.85,0.563l-1.168,1.891v2.328l0.345-0.555l0.991-0.218l-0.386,0.991l-0.261,1.899l0.261,0.598l0.386-0.773l0.95-0.261
l-0.344,0.95l0.041,1.556L18,35.864l0.731-1.379l0.429,0.43l-0.125,2.539l0.604,1.033l0.303-1.033l1.118-0.514l0.521,1.681
l1.42,1.077L23.858,40l-0.168-2.153l0.471-1.209l3.362-1.336l6.211-4.052l2.068-1.858l0.521-1.546l-0.438-2.589l-0.428-3.059
l1.597,1.034l-0.773-3.321l-1.294-3.664l1.117-0.168l-0.218-1.555l-1.722-6.421l-1.161-3.278l0.303-1.076l1.244,0.26l1.034,0.126
l-1.076-3.749l-2.496-5.514L30.028-7.33l-5.564-2.236l-1.034-0.563l0.344-0.731l0.992-0.135l0.218-0.597l-7.976-2.589l0.512-0.731
l1.471-0.302l-0.479-0.605l-10.17-4.136l-1.42-0.865l-0.605-2.287l-2.715-2.235l-3.664-1.597l-4.615-1.336l-0.563-1.034
l1.127-2.026l0.252-1.294l-1.681-1.337l-1.379,0.177l-3.185,2.883l-0.689-1.765L-14.2-35.47l-2.245-0.824l-2.757,0.605
L-26.834-39.311z M-37.055-16.979l0.479,0.773l1.504,0.605l0.177,0.471l0.125,2.37l0.605,3.152l0.992,3.354l0.899,1.899
l1.429,0.647l1.504,0.303h1.816l4.908-0.303l0.563,0.177l-0.302,0.597l-0.471,0.093l-0.563,0.73l0.428,0.345l1.681-0.387
l4.051-0.386l3.153,0.209l2.546,0.387l0.941-0.387l1.294-2.715l0.563-3.236l0.303-3.009l-0.731-1.513l-1.126-1.9l-2.934,0.051
l-3.615,0.555l-8.623,0.261l-0.521-0.689l-0.168-1.555l0.168-1.463l0.823-0.908l0.127-1.723l-0.95-1.463l-1.639-0.949l-1.589-0.563
l-0.521,0.218l0.647,0.69l0.042,0.386l-0.857-0.084l-1.387-0.387l-0.639,0.252l0.639,0.479l-0.21,0.563h-2.286l-0.521,0.168
l0.824,0.689l-0.303,0.731l-1.168-0.084l-1.076,0.563l0.437,0.428l0.512,0.605l-0.815,0.261L-37.055-16.979z M-28.557-16.685
l0.899-0.857l0.646,0.084l0.084,0.824l-0.429,0.689l-0.042,1.076l0.386,0.908l0.261,1.765l0.387,2.799l0.386,1.42l0.135,1.294
l-0.521,1.379l-0.95,1.126l-0.899,0.042l-0.092-0.521l0.866-1.118l0.26-1.462l-0.176-1.942l-0.605-2.109l-0.647-2.287l-0.21-1.773
L-28.557-16.685z"></path>
</defs>
<g id="labels">
<g class="cluster">
<text>Einnahmen</text>
</g>
<g class="cluster">
<text>Ausgaben</text>
</g>
</g>
<g transform="translate(50,240)">
<text id="year">{{filter.year}}</text>
</g>
</svg>
</div>
<div id="info">
<h1 ng-click="filter.code = ''" title="Ansicht zurücksetzen">
<div class="crest"></div>
Finanzdirektion des Kantons Bern
</h1>
<h2 ng-click="filter.code = ''" title="Ansicht zurücksetzen">Die Finanzen des Kantons Bern</h2>
<ol class="breadcrumb" breadcrumbs></ol>
<p>Die Angaben enthalten die Aufwendungen und Erträge der Laufenden Rechnung sowie die Ausgaben und Einnahmen
der Investitionsrechnung.</p>
<table finance-table class="table table-condensed table-striped table-hover">
<thead>
<tr>
<th> </th>
<th>Kategorie</th>
<th class="number">Einnahmen<br>{{filter.year}} in Fr.</th>
<th class="number">Ausgaben<br>{{filter.year}} in Fr.</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<th> </th>
<th>Total</th>
<th class="number">{{parent.revenue.value | swissFormat}}</th>
<th class="number">{{parent.expense.value | swissFormat}}</th>
<th class="number"> </th>
</tr>
<tr ng-show="foundDescriptions">
<td><i class="fa fa-hand-o-up"></i></td>
<td colspan="20">Für weitere Informationen zu den Ausgabekategorien auf die Informationssymbole <i
class="fa fa-info-circle"></i> klicken.
</td>
</tr>
</tfoot>
</table>
<div id="meta" ng-controller="Modal">
<p class="footer-left"><a href="" ng-click="open('about')">© Finanzdirektion des Kantons Bern</a></p>
<ul class="list-inline">
<li><a href="" ng-click="open('annotation')">Erläuterungen</a></li>
<li><a href="https://www.fin.be.ch/fin/de/index/direktion/organisation/gs/kontakt.html">Kontakt</a></li>
<li><a href="" ng-click="open('about')">Impressum</a></li>
<li><a href="" ng-click="open('downloads')">Downloads</a></li>
</ul>
</div>
</div>
</script>
<script type="text/ng-template" id="downloads">
<div class="modal-header">
<span style="float: right; cursor: pointer" ng-click="$close()">✖</span>
<h3 class="modal-title">Downloads</h3>
</div>
<div class="modal-body">
<dl>
<dt>Geschäftsberichte des Kantons Bern</dt>
<dd><a target="_blank" href="http://www.be.ch/geschaeftsbericht">http://www.be.ch/geschaeftsbericht</a></dd>
<dt>Überblick über die Finanzzahlen 2013</dt>
<dd>
<a target="_blank"
href="http://www.be.ch/portal/de/index/mediencenter/medienmitteilungen.assetref/dam/documents/portal/Medienmitteilungen/de/2014/03/2014-03-11-geschaeftsbericht-be-2013-ueberblick.pdf">[
PDF ]</a>
</dd>
<dt>Rohdaten der Visualisation</dt>
<dd><a target="_blank" href="data/data.csv">[ CSV Finanzen ]</a> <a target="_blank"
href="data/descriptions.csv">[ CSV
Beschreibungen ]</a></dd>
<dt>Source Code der Visualisierung</dt>
<dd><a target="_blank" href="https://github.com/KeeTraxx/kanton-bern-finanzen">[ GitHub ]</a></dd>
</dl>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="$close()">Schliessen</button>
</div>
</script>
<script type="text/ng-template" id="about">
<div class="modal-header">
<span style="float: right; cursor: pointer" ng-click="$close()">✖</span>
<h3 class="modal-title">Impressum</h3>
</div>
<div class="modal-body">
<dl>
<dt>Herausgeber</dt>
<dd><a href="http://www.fin.be.ch/">Finanzdirektion des Kantons Bern</a></dd>
<dt>Realisierung</dt>
<dd><a href="http://www.digitale-nachhaltigkeit.unibe.ch">Forschungsstelle Digitale Nachhaltigkeit am
Institut für Wirtschaftsinformatik der Universität Bern</a></dd>
<dt>Veröffentlichung</dt>
<dd>Juni 2015</dd>
</dl>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="$close()">Schliessen</button>
</div>
</script>
<script type="text/ng-template" id="annotation">
<div class="modal-header">
<span style="float: right; cursor: pointer" ng-click="$close()">✖</span>
<h3 class="modal-title">Erläuterungen</h3>
</div>
<div class="modal-body">
<p>Die vorliegende Open Finance Applikation visualisiert die Aufwendungen und Erträge der Laufenden Rechnung
sowie die Ausgaben der Investitionsrechnung des Kantons Bern. Es stehen die Finanzzahlen aus den Jahren 1990
bis 2014 aufgegliedert in 10 verschiedene Tätigkeitsfelder des Kantons zur Verfügung. Pro Ausgabenbereich
können die Angaben bis zu zwei Stufen in die Tiefe betrachtet werden. Dabei werden sowohl die absoluten
Beträge als auch die proportionalen Anteile ausgewiesen.</p>
<p>Mit dieser Visualisierung soll auf spielerische
Weise aufgezeigt werden, wie der Kanton Bern seine finanziellen Mittel einsetzt bzw. in welchen
Grössenverhältnissen diese Ausgaben zueinander stehen und wie sich die entsprechenden Einnahmen
gestalten. Mit der Möglichkeit, die Zahlen über die verschiedenen Jahren anzuzeigen, können auch zeitliche
Entwicklungen nachvollzogen werden.</p>
<p>Weitere Hintergründe zu solchen Finanzvisualisierungen sind im Artikel <a
href="http://www.sgvw.ch/d/fokus/Seiten/130712_OpenFinanceApps_Stuermer.aspx">"Open Finance Apps:
Chancen und Voraussetzungen bei der Visualisierung von Finanzdaten"</a> beschrieben.</p>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="$close()">Schliessen</button>
</div>
</script>
<script type="application/javascript" src="js/app.js"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-52111436-1', 'keetraxx.github.io');
ga('send', 'pageview');
</script>
</body>
</html>