-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsiliconCrash.html
More file actions
228 lines (217 loc) · 7.86 KB
/
siliconCrash.html
File metadata and controls
228 lines (217 loc) · 7.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<a id="home" href="index.html">Home</a>
<meta charset="UTF-8" />
<title>Historical Market Crashes</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-annotation/2.5.0/d3-annotation.min.js"></script>
</head>
<body>
<h1>Market SVB from 2000-2009</h1>
<p style="font-size: 22px">
In this graph, we can see an in depth analysis of SVB's stock prices from 2018 to 2023. We see that around
In February 2020, the stock market crashed due to the Covid-19 pandemic. We can see that the stock prices for SVB decreased immensely as well.
However we can also see that SVB didn't fail as WMB did, and in fact, after a few months, the stock started to rise again. This is very different from.
In just a year the stock doubled from a low of 244.49 to 505.03. The stock continued to change and fluctuate, but it never reached the low of 244.49 again.
In fact, overall the stock increased for a while, reaching a peak price of 761.48 in November 2021. In less than two years the price increased by over 300%.
However, shortly we see that the stock started to plummet. In March 2023, the stock price reached an absolute low of 0.6. This is a 99.92% decrease from its peak price.
And from this SVB crashed. This shows that though the market crash has a significant impact on the bank, it is not the only factor that causes a bank to fail. So what caused SVB to fail?
The next slide will answer this question.
</p>
<div id="SVB"></div>
<script>
d3.select("#SVB svg").remove();
width = 2200;
height = 800;
d3.csv("./data/SIVB.csv").then(function (data) {
data.forEach(function (d) {
d.Date = d3.timeParse("%Y-%m-%d")(d.Date);
});
data = data.filter(function (d) {
return d.Date.getFullYear() >= 2018 && d.Date.getFullYear() <= 2023;
});
var svg = d3
.select("#SVB")
.append("svg")
.attr("width", 2800)
.attr("height", 1200)
.append("g")
.attr("transform", "translate(" + 200 + "," + 200 + ")");
var x = d3
.scaleTime()
.domain(
d3.extent(data, function (d) {
return d.Date;
})
)
.range([0, width]);
svg
.append("g")
.attr("transform", "translate(0," + height + ")")
.call(d3.axisBottom(x));
var y = d3
.scaleLinear()
.domain([
0,
d3.max(data, function (d) {
return d.Close;
}),
])
.range([height - 3, 0]);
svg.append("g").call(d3.axisLeft(y));
svg
.append("text")
.attr("x", width / 2)
.attr("y", height + 200 - 100)
.attr("text-anchor", "middle")
.style("font-size", "20px")
.text("Year");
svg
.append("text")
.attr("transform", "rotate(-90)")
.attr("x", 0 - height / 2)
.attr("y", -200 + 60)
.attr("text-anchor", "middle")
.style("font-size", "20px")
.text("Stock Closes ($)");
svg
.append("text")
.attr("x", width / 2)
.attr("y", 0 - 200 / 2)
.attr("text-anchor", "middle")
.style("font-size", "25px")
.style("text-decoration", "underline")
.text("SVB Stock Closes vs Date");
var line = d3
.line()
.x(function (d) {
return 0;
})
.y(function (d) {
return y(d.Close);
});
svg
.append("path")
.datum(data)
.attr("fill", "none")
.attr("stroke", "red")
.attr("stroke-width", 1)
.attr("d", line)
.transition()
.duration(1500)
.attr(
"d",
d3
.line()
.x(function (d) {
return x(d.Date);
})
.y(function (d) {
return y(d.Close);
})
)
.on("end", function () {
var annotations = [
{
note: {
label: "SVB Failure $0.6",
title: "March 2023",
},
x: x(new Date(2023, 3, 27)),
y: y(0),
dy: -110,
dx: 20,
color: "red",
url: "siliconCrash.html",
},
{
note: {
label: "Peak price in less than a year. \t $761.48 million click to find out why it crashed",
title: "November 2021 ",
},
x: x(new Date(2021, 11, 05)),
y: y(720.48),
dy: -110,
dx: -20,
color: "blue",
url: "siliconCrash.html",
},
{
note: {
label: "Start of Covid-19crash \t $244.49 million",
title: "Feburary 2020 ",
},
x: x(new Date(2020, 2, 02)),
y: y(244),
dy: -110,
dx: -20,
color: "black",
url: "covid-19.html",
},
{
note: {
label:
"In 1 year the value went up from 244.49 to 505.03 over 100% Increase",
title: "Feburary 2021",
},
x: x(new Date(2021, 2, 02)),
y: y(505.03),
dy: -110,
dx: 20,
color: "green",
fontsize: 30,
url: "siliconCrash.html",
},
{
note: {
label:
"From Nov 2021 to March 2023, in less than 2 years, SVB's value dropped from 761.48 to 0.6 resuling in a 99.92% decrease and -760.88 million loss",
title: "SVB Fails",
},
x: x(new Date(2022, 7, 24)),
y: y(505.03),
dy: -110,
dx: 20,
color: "green",
fontsize: 30,
url: "siliconCrash.html",
},
];
var makeAnnotations = d3
.annotation()
.annotations(annotations)
.type(d3.annotationLabel)
.accessors({
x: (d) => d.x,
y: (d) => d.y,
})
.accessorsInverse({
x: (d) => x.invert(d.x),
y: (d) => y.invert(d.y),
})
.on("subjectover", function (annotation) {
d3.select(this).select("text").style("fill", "red");
})
.on("subjectout", function (annotation) {
d3.select(this).select("text").style("fill", "black");
});
svg
.append("g")
.attr("class", "annotation-group")
.call(makeAnnotations);
d3.selectAll(".annotation-group .annotation")
.style("cursor", "pointer")
.each(function (d, i) {
d3.select(this).on("click", function () {
window.location.href = annotations[i].url;
});
});
});
});
</script>
<link rel="stylesheet" href="button.css" />
<a id="previous-slide" href="covid-19.html">Last Slide</a>
<a id="next-slide" href="conclusion.html">Next Slide</a>
</body>
</html>