-
Notifications
You must be signed in to change notification settings - Fork 0
/
About.html
301 lines (240 loc) · 9.63 KB
/
About.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
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
<!DOCTYPE html>
<html lang="en" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>CCAR Loss Analytics</title>
<meta charset="utf-8">
<style>
#full_body {
margin: auto 10px;
width: auto;
height: 2000px;
background-color: rgb(201, 202, 201);
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid rgb(1, 12, 0);
margin: 1em 0;
padding: 0;
}
p {
text-align: center;
color: rgb(110, 110, 110);
}
.comment1{
font-family: Helvetica, Arial, sans-serif;
color: rgb(5, 75, 35);
font-size: 16px;
font-weight: bold;
}
.comment2{
font-family: Helvetica, Arial, sans-serif;
color: black;
font-size: 14px;
}
.comment3{
font-family: Helvetica, Arial, sans-serif;
color: black;
font-size: 14px;
font-weight: bold;
}
</style>
<script type="text/javascript" src="lib/d3.v5.min.js"></script>
<script type="text/javascript" src="lib/d3-dsv.min.js"></script>
<script type="text/javascript" src="lib/d3-tip.min.js"></script>
</head>
<body id="full_body">
<div id="container0"></div>
<div id="container"></div>
<script type="text/javascript">
var parseDate = d3.timeParse("%Y-%m-%d");
const ind_chart_ht = 500;
const ind_chart_wd = 500;
var margin = {top: 50, right: 50, bottom: 50, left: 100};
var width = 1880;
var height = 750;
var firstMacroLeft = 800;
var small_chart_ht = 150;
//-------------------------COLORS-------------------------|
var color_peers = ['#000000','#fffb00','#ff00ff','#1900ff'];
var color_scens = ['#106331', '#ed0000'];
var svg0 = d3.select("#container0").append("svg")
.attr('class','tempsvh')
.attr("height",100)
.attr("width", width);
svg0.append('rect')
.attr('x', 0)
.attr('y', 0)
.attr('width', width)
.attr('height', 90)
.attr('fill', '#054b23');
svg0.append("text")
.attr("font-size", "20px")
.attr("font-family", "Helvetica")
.attr('font-weight', 'bold')
.text('Credit Risk')
.attr("fill", "#ffffff")
.attr("transform", "translate("+30+","+35+")")
.attr("class", "left_header1");
svg0.append("text")
.attr("font-size", "20px")
.attr("font-family", "Helvetica")
.attr('font-weight', 'bold')
.text('Sample Data')
.attr("fill", "#ffffff")
.attr("transform", "translate("+20+","+65+")")
.attr("class", "left_header2");
svg0.append("text")
.attr("font-size", "40px")
.attr("font-family", "Helvetica")
.attr('font-weight', 'bold')
.text('CCAR - Credit Loss Analytics')
.attr("fill", "#ffffff")
.attr("transform", "translate("+600+","+45+")")
.attr("class", "center_header1");
svg0.append("text")
.attr("font-size", "20px")
.attr("font-family", "Helvetica")
.attr('font-weight', 'bold')
.text('Past - Present - Future')
.attr("fill", "#ffffff")
.attr("transform", "translate("+750+","+75+")")
.attr("class", "center_header2");
var logo_img = svg0.append("svg:image")
.attr("xlink:href", "assets/team25logo.png")
.attr("width", 85)
.attr("height", 85)
.attr("x", width-90)
.attr("y",3);
svg0.append("text")
.attr("font-size", "14px")
.attr("font-family", "Helvetica")
.attr('font-weight', 'bold')
.text('Home')
.attr("fill", "#ffffff")
.attr("transform", "translate("+220+","+77+")")
.attr("class", "nav_btn_txt");
svg0.append("a")
.attr("xlink:href", "CCAR_analytics.html")
.append("rect")
.attr("x", 200)
.attr("y", 60)
.attr("height", 25)
.attr("width", 75)
.style("opacity", 0.2)
.style("fill", "lightgreen");
svg0.append("text")
.attr("font-size", "14px")
.attr("font-family", "Helvetica")
.attr('font-weight', 'bold')
.text('About')
.attr("fill", "#ffffff")
.attr("transform", "translate("+320+","+77+")")
.attr("class", "nav_btn_txt");
svg0.append("a")
.attr("xlink:href", "About.html")
.append("rect")
.attr("x", 300)
.attr("y", 60)
.attr("height", 25)
.attr("width", 75)
.style("opacity", 0.2)
.style("fill", "lightgreen");
//-------------------------SETTING SVG---------------------------------|
var svg = d3.select("body").append("svg")
.attr('class','all_charts')
.attr("height",height)
.attr("width", width);
// ---------------------------------------------------------------------|
// -------------------------COMMENTS SECTION----------------------------|
// ---------------------------------------------------------------------|
svg.append("text")
.text('What is CCAR?')
.attr("transform", "translate("+50+","+70+")")
.attr("fill", "#0c4714")
.attr("class", "comment1");
svg.append("text")
.text("Banks play an important role in a smoothly functioning economy as they act both as deposit-seeking institutions and lenders.")
.attr("transform", "translate("+50+","+95+")")
.attr("class", "comment2");
svg.append("text")
.text("Typically, banking profits come from the difference between interest rates paid to depositors and rates charged to borrowers.")
.attr("transform", "translate("+50+","+120+")")
.attr("class", "comment2");
svg.append("text")
.text("Lending products have different levels of associated risk and return, and it is important for banks to manage this risk-return")
.attr("transform", "translate("+50+","+145+")")
.attr("class", "comment2");
svg.append("text")
.text("profile to maximize profits and protect themselves from situations where they could lose large amounts of funds due to defaults.")
.attr("transform", "translate("+50+","+170+")")
.attr("class", "comment2");
svg.append("text")
.text("During the lead up to 2008 great recession, easily available credit and economic expansion led to growth in risky portfolios, ")
.attr("transform", "translate("+50+","+195+")")
.attr("class", "comment2");
svg.append("text")
.text("which defaulted by the time the economy took a downturn. Although there were additional contributing factors to the great")
.attr("transform", "translate("+50+","+220+")")
.attr("class", "comment2");
svg.append("text")
.text("recession, it is well accepted that credit risk from the low-quality loan portfolios of banks contributed to the recession’s severity.")
.attr("transform", "translate("+50+","+245+")")
.attr("class", "comment2");
svg.append("text")
.text("Consequently, the US government had to bail out many banks to keep them afloat. To avoid similar situations in the future,")
.attr("transform", "translate("+50+","+290+")")
.attr("class", "comment2");
svg.append("text")
.text("Federal Reserve introduced an annual exercise called the Comprehensive Capital Analysis and Review (CCAR). This exercise")
.attr("transform", "translate("+50+","+315+")")
.attr("class", "comment2");
svg.append("text")
.text("provides banks with macroeconomic scenarios and requires most large and complex banks to estimate their expected losses")
.attr("transform", "translate("+50+","+340+")")
.attr("class", "comment2");
svg.append("text")
.text("in those stress scenarios. Banks also complete benchmarking activities to compare their historical losses to similar banks in")
.attr("transform", "translate("+50+","+365+")")
.attr("class", "comment2");
svg.append("text")
.text("different portfolio segments during such exercises. Nowadays, CCAR has become one of the key risk management tools,")
.attr("transform", "translate("+50+","+390+")")
.attr("class", "comment2");
svg.append("text")
.text("where metrics such as expected losses are used to help regulators quantify credit risk and keep it under check.")
.attr("transform", "translate("+50+","+415+")")
.attr("class", "comment2");
svg.append("text")
.text('Contact')
.attr("transform", "translate("+1350+","+70+")")
.attr("fill", "#0c4714")
.attr("class", "comment1");
svg.append("text")
.text('Anterpreet Singh')
.attr("transform", "translate("+1350+","+100+")")
.attr("fill", "#0c4714")
.attr("class", "comment3");
svg.append("text")
.text('MSc. Analytics Candidate')
.attr("transform", "translate("+1350+","+120+")")
.attr("fill", "#0c4714")
.attr("class", "comment2");
svg.append("text")
.text('LinkedIn: https://www.linkedin.com/in/sunnybhuee/')
.attr("transform", "translate("+1350+","+140+")")
.attr("fill", "#0c4714")
.attr("class", "comment2");
svg.append("text")
.text('GitHub: https://github.com/SunnyBhuee')
.attr("transform", "translate("+1350+","+160+")")
.attr("fill", "#0c4714")
.attr("class", "comment2");
// -------------------------------------------------------------------------------|
</script>
<div class="dashboard"></div>
<hr/>
<p>Dashboard developed for a university team project by Anterpreet (Sunny) Singh - May 2021<BR></p>
</body>
</html>