Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
f484fa7
add data and documentation
notkarenyi May 12, 2025
5c2494a
Create clean-data.py
notkarenyi May 12, 2025
91ea25f
manually fix data from 2006-2008 ish
notkarenyi May 13, 2025
546556a
account for unit change after 12/2020
notkarenyi May 13, 2025
90dab2c
improve graph
notkarenyi May 13, 2025
d1b474b
fix regex trim
notkarenyi May 13, 2025
794c843
Update 13F-HR.csv
notkarenyi May 13, 2025
7e577c9
Create output.png
notkarenyi May 13, 2025
c69f846
rename folder
notkarenyi May 13, 2025
4cc8be1
add endowment breakdown 24
notkarenyi May 13, 2025
414d700
investments by date
notkarenyi May 14, 2025
41697e6
remove unused nodes
notkarenyi May 14, 2025
90481d9
reverse order
notkarenyi Jul 28, 2025
fc46130
scrape holdings from voo/vt
notkarenyi Jul 30, 2025
eda2a71
fix scrape function
notkarenyi Jul 30, 2025
baf17ea
find weapons manufacturing investment
notkarenyi Jul 30, 2025
7772117
value can be as low as 1000
notkarenyi Aug 31, 2025
ba81471
analyze financial statements
notkarenyi Sep 1, 2025
b18686b
visualize sec
notkarenyi Sep 1, 2025
1530dc2
fix parsing sec
notkarenyi Sep 1, 2025
afe3934
cleanup
notkarenyi Sep 1, 2025
aa21843
need to consolidate groups after rename
notkarenyi Sep 1, 2025
1aada20
parse 990 data
notkarenyi Sep 2, 2025
2eb9efa
temporary/experimental charts
notkarenyi Sep 15, 2025
c071a77
look at industries
notkarenyi Oct 4, 2025
67c24ea
nlp analysis of stock companies
notkarenyi Oct 4, 2025
13b033c
initialize story from divestment template
notkarenyi Oct 12, 2025
72a3f67
update d3 version
notkarenyi Oct 13, 2025
d9e1b75
update bylines
notkarenyi Oct 13, 2025
c79c7a2
remove test charts
notkarenyi Oct 13, 2025
de7c605
very manual approach to flowchart svg
notkarenyi Oct 13, 2025
8693144
adjustments for flowchart hide/show
notkarenyi Oct 13, 2025
74922d5
first try at breakdown plot
notkarenyi Oct 13, 2025
4bae66e
get re/categorized 2023 data for piece
notkarenyi Oct 13, 2025
dad67e1
regroup into intelligble categories
notkarenyi Oct 15, 2025
eee90b6
improve top words and analyze using shares and value
notkarenyi Oct 25, 2025
1d0cf7c
Create sec-sectors-2025.json
notkarenyi Oct 25, 2025
fd9794b
why are there random spaces now???
notkarenyi Oct 26, 2025
e3b53ea
update data
notkarenyi Oct 26, 2025
6633a5e
simplify and add new graph
notkarenyi Oct 26, 2025
8460292
add spacing
notkarenyi Oct 26, 2025
4293af2
styling for hover
notkarenyi Oct 26, 2025
3df9f5b
update versions and labels
notkarenyi Oct 26, 2025
6781a13
fix code to scrape holdings
notkarenyi Oct 28, 2025
1b40b77
fix logic for getting yf data
notkarenyi Oct 28, 2025
96a03ec
i think NA gets read as missing
notkarenyi Oct 28, 2025
b47eea8
fix actually present missing values
notkarenyi Oct 28, 2025
485442f
improve pdf reading 990
notkarenyi Nov 8, 2025
ac9646d
modularize 990 parse
notkarenyi Nov 8, 2025
d8de7fb
put sankey chart in the article
notkarenyi Nov 9, 2025
5bbcb8d
back to a regular bar plot
notkarenyi Nov 9, 2025
508f21c
annotations
notkarenyi Nov 9, 2025
aa363c9
prepare coi data
notkarenyi Nov 9, 2025
71f2072
cleanup
notkarenyi Nov 9, 2025
5d166b9
add tables
notkarenyi Nov 9, 2025
2d98218
fix backwards flow and delete unused functions
notkarenyi Nov 11, 2025
01dbbeb
initialize last section
notkarenyi Nov 11, 2025
55cd2d6
fix hovertemplate
notkarenyi Nov 12, 2025
d0bff59
reorder sections to go with the graphs
notkarenyi Nov 12, 2025
6c0d75b
make sankey scrollable
notkarenyi Nov 12, 2025
86f1573
html tables not js
notkarenyi Nov 13, 2025
d39034a
more mature svg
notkarenyi Nov 16, 2025
92d516f
update cover and credits
notkarenyi Nov 16, 2025
afa276e
create largest endowments graph
notkarenyi Nov 16, 2025
eda2c82
clean up waypoints code
notkarenyi Nov 16, 2025
def4abe
simplify adding labels and show/hide chart
notkarenyi Nov 16, 2025
57948c0
clean up createtable function
notkarenyi Nov 16, 2025
dc1eb02
clean up functions
notkarenyi Nov 16, 2025
41a1882
simplify svg
notkarenyi Nov 16, 2025
92935a6
simplify svg
notkarenyi Nov 16, 2025
dcf3c08
add legend and x axis for bar
notkarenyi Nov 16, 2025
eb844e9
add stacked area
notkarenyi Nov 17, 2025
07c1b22
fix svg links
notkarenyi Nov 19, 2025
2dbc3ec
fix cover to be half screen
notkarenyi Nov 19, 2025
c84a7a2
stacked area chart fixes
notkarenyi Nov 19, 2025
f6871f9
update data
notkarenyi Dec 2, 2025
81db337
update data
notkarenyi Dec 2, 2025
70593fc
make linksdata into 1 obj instead of 3
notkarenyi Dec 18, 2025
40d1e3d
circle chart
notkarenyi Dec 18, 2025
3217ceb
remove complicated graph
notkarenyi Dec 18, 2025
145f10f
lollipop and circle charts
notkarenyi Dec 19, 2025
ddb2a52
move sankey data to external file
notkarenyi Dec 25, 2025
3bfb6bf
implement suggestions for bar chart
notkarenyi Dec 25, 2025
ec9765b
fixes to lollipop chart
notkarenyi Dec 25, 2025
ac17c0d
fixes to circle chart
notkarenyi Dec 25, 2025
f4b486f
use sankey data
notkarenyi Dec 25, 2025
2921131
add back annotation for donut
notkarenyi Dec 25, 2025
cfefd21
remove hovertemplates obj
notkarenyi Dec 25, 2025
1d3fa91
correctly align annotations
notkarenyi Dec 25, 2025
d5dc0ff
increase font size all graphs
notkarenyi Dec 25, 2025
75cc7a0
add what is endowment intro chart
notkarenyi Dec 25, 2025
1ebba43
Update main.js
notkarenyi Dec 25, 2025
8456c22
round to thousands
notkarenyi Dec 25, 2025
b117368
start working on new svgs
notkarenyi Dec 26, 2025
b76eb29
fix svgs
notkarenyi Dec 26, 2025
4985909
include svg in js not html
notkarenyi Dec 26, 2025
665b5a5
remove extraneous data
notkarenyi Dec 26, 2025
16dec08
fix svgs
notkarenyi Dec 26, 2025
b797b59
draw new flowchart and remove sec tables
notkarenyi Dec 26, 2025
0daeec5
more graph edits
notkarenyi Dec 26, 2025
3bad5e4
unneeded styling
notkarenyi Dec 26, 2025
fedad5e
horizontal adjustment
notkarenyi Dec 26, 2025
6c662fd
fix show sequence
notkarenyi Dec 26, 2025
e486eb9
responsive font size
notkarenyi Jan 1, 2026
4949b00
margin and axes are specified as extra objects rather than args
notkarenyi Jan 1, 2026
a192bdf
hidechart/showchart do not take args
notkarenyi Jan 1, 2026
9a2c8d4
responsive scrollable sankey
notkarenyi Jan 1, 2026
8a7acc6
adjustments for svg on mobile
notkarenyi Jan 2, 2026
33965a2
disable sankey drag
notkarenyi Jan 2, 2026
1255d9c
mobile adjustments
notkarenyi Jan 2, 2026
c92eccf
move bar label outside on mobile
notkarenyi Jan 2, 2026
ed9eaba
edits to index
notkarenyi Jan 2, 2026
e9f8234
Delete maroon_logo_white.svg
notkarenyi Jan 2, 2026
b57cff6
Revert "Delete maroon_logo_white.svg"
notkarenyi Jan 2, 2026
129d447
more svg fixes
notkarenyi Jan 2, 2026
74f277a
create black logo if needed
notkarenyi Jan 2, 2026
6ea26f7
chart container show/hide
notkarenyi Jan 2, 2026
db53d1a
get rid of godforsaken interactions
notkarenyi Jan 2, 2026
2027feb
fix circle chart
notkarenyi Jan 2, 2026
7d73be1
cleanup
notkarenyi Jan 2, 2026
eb7c956
fix mobile positioning
notkarenyi Jan 2, 2026
85b69ae
fix mobile positioning
notkarenyi Jan 2, 2026
9de9fde
edit index
notkarenyi Jan 2, 2026
d587713
fix data
notkarenyi Jan 2, 2026
644cd8e
increase svg font size
notkarenyi Jan 2, 2026
458ae1f
show/hide chart container at end
notkarenyi Jan 2, 2026
3369ef4
clear chart at top
notkarenyi Jan 2, 2026
a73c20d
update text
notkarenyi Jan 4, 2026
2bd4d9c
Create preqin-codes-wrds.txt
notkarenyi Jan 4, 2026
c07a6a9
move section order
notkarenyi Jan 4, 2026
9540f6e
neat clean.py for distribution
notkarenyi Jan 4, 2026
2cc5ac3
fix divide by thousands error
notkarenyi Jan 4, 2026
d639622
only define hoverlabel once in layout
notkarenyi Jan 5, 2026
c85acb3
fix order
notkarenyi Jan 5, 2026
9e6f969
document
notkarenyi Jan 5, 2026
256a0ed
update with 2025 data
notkarenyi Jan 5, 2026
d4b5d19
update sankey data handling
notkarenyi Jan 5, 2026
bb109e9
formatThousands now displays as 1 SF
notkarenyi Jan 5, 2026
77f73b2
update bar chart to use format thousands
notkarenyi Jan 5, 2026
294e660
remove operating/nonoperating distinction and add hover labels
notkarenyi Jan 5, 2026
b4ab42b
no need for newline in hover
notkarenyi Jan 5, 2026
de81896
Update index.html
notkarenyi Jan 5, 2026
2e41e82
fix ordering
notkarenyi Jan 5, 2026
681429d
clearer labels
notkarenyi Jan 5, 2026
d2a2f2a
remove unused files
notkarenyi Jan 7, 2026
a3dc816
update 2024 forbes data
notkarenyi Jan 7, 2026
a94e004
update sec 9/2025
notkarenyi Jan 7, 2026
a2a7720
Update clean-data.py
notkarenyi Jan 7, 2026
289b768
Delete uchicago-endowment-by-year.json
notkarenyi Jan 7, 2026
5dd9915
fix margin reset bug
notkarenyi Jan 7, 2026
8e0f25e
hide zeroline circle chart
notkarenyi Jan 7, 2026
01ef2e3
circlechart updates for new sec data
notkarenyi Jan 7, 2026
6540f3f
mobile adjustments
notkarenyi Jan 7, 2026
f8a7671
remove unused data
notkarenyi Jan 7, 2026
4e50f98
Update clean-data.py
notkarenyi Jan 7, 2026
17cddbb
recode to fit text
notkarenyi Jan 7, 2026
bbb4b5e
increase font size on arrows
notkarenyi Jan 7, 2026
f2a2662
remove experiment
notkarenyi Jan 7, 2026
f520636
recategorize data types based on financial statement
notkarenyi Jan 12, 2026
e8bd02b
fix pie chart math and format
notkarenyi Jan 12, 2026
20246a6
donut calculates percent for u
notkarenyi Jan 12, 2026
f423eb1
Update index.html
notkarenyi Jan 12, 2026
40ffacd
edit lollipop
notkarenyi Jan 13, 2026
ed70326
add definitions
notkarenyi Jan 14, 2026
d4507aa
align all hovers left
notkarenyi Jan 14, 2026
5c2e04f
rename to avoid confusion
notkarenyi Jan 14, 2026
3e345df
color contrast edits
notkarenyi Jan 14, 2026
4ae62f5
rewrite sectors to be more legible
notkarenyi Jan 14, 2026
121646e
replace arrows flowchart w conflicts of interest chart
notkarenyi Jan 18, 2026
9a9f59c
restore color control
notkarenyi Jan 18, 2026
211618f
mobile adjustments
notkarenyi Jan 18, 2026
1931460
fix circle packing
notkarenyi Jan 18, 2026
ffc2455
update coi processing
notkarenyi Jan 18, 2026
e812447
remove stocks from private equities description
notkarenyi Jan 18, 2026
24788da
remove unused code
notkarenyi Jan 19, 2026
c4a6b65
Update index.html
notkarenyi Jan 19, 2026
2eafc7c
update data
notkarenyi Jan 19, 2026
1cfec03
reorder
notkarenyi Jan 19, 2026
e487887
cleanup and edits
notkarenyi Jan 19, 2026
8058074
delete unused files
notkarenyi Jan 22, 2026
d61a3cc
update links
notkarenyi Jan 22, 2026
59614ee
update quote
notkarenyi Jan 22, 2026
657fb94
updated to 2024 data
notkarenyi Jan 22, 2026
880bd7f
remove unused files
notkarenyi Jan 22, 2026
9d31b74
Update meta_data.json
notkarenyi Jan 22, 2026
8807eaf
remove unused code
notkarenyi Jan 22, 2026
5c70d65
Update index.html
notkarenyi Jan 22, 2026
68364f6
Update index.html
notkarenyi Jan 22, 2026
f1d79c8
add legend
notkarenyi Jan 22, 2026
c113b06
lint and format
notkarenyi Jan 23, 2026
a7740e6
Update index.html
notkarenyi Jan 23, 2026
f835336
link and text edits
notkarenyi Jan 30, 2026
786ea16
color edits
notkarenyi Jan 30, 2026
e1e72f9
text edits
notkarenyi Jan 30, 2026
c0d8093
fix capitalization
notkarenyi Jan 30, 2026
9449b66
text update
notkarenyi Jan 30, 2026
6229be7
fix color
notkarenyi Jan 30, 2026
d29a23d
mobile edits
notkarenyi Jan 30, 2026
17e351b
more mobile adjustments
notkarenyi Jan 30, 2026
c46821a
remove first scroller
notkarenyi Jan 30, 2026
af2fd73
date
notkarenyi Jan 30, 2026
3403ac9
fix quotes
notkarenyi Feb 14, 2026
ff32f24
add openurl functionality
notkarenyi Feb 14, 2026
fb06750
copyedits to captions
notkarenyi Apr 1, 2026
47f02b1
copy edits
notkarenyi Apr 1, 2026
ba1db3a
formatting
notkarenyi Apr 1, 2026
f12303e
accommodate font size change
notkarenyi Apr 1, 2026
7cd3687
copy edit
notkarenyi Apr 1, 2026
191b778
copy edit
notkarenyi Apr 1, 2026
378ece1
mobile fixes again
notkarenyi Apr 1, 2026
f89fdbe
copy edits to subheading
notkarenyi Apr 1, 2026
053a9d1
Merge branch 'main' into endowment
notkarenyi Apr 1, 2026
95ec7c5
fix possible data error in sector analysis
notkarenyi Apr 5, 2026
84c5872
Update sec-sectors-2025.json
notkarenyi Apr 5, 2026
2e2e123
adjust sizes for better reading
notkarenyi Apr 5, 2026
e24799b
enable isort
notkarenyi Apr 5, 2026
032b494
documentation
notkarenyi Apr 5, 2026
4863b26
move to 2026
notkarenyi Apr 5, 2026
eba208a
npm format
notkarenyi Apr 5, 2026
264b122
Merge branch 'main' into endowment
notkarenyi Apr 5, 2026
786fd08
line edits from copy
notkarenyi Apr 5, 2026
9a714a9
center titles
notkarenyi Apr 5, 2026
9e9685c
js cleanup for mobile
notkarenyi Apr 5, 2026
7c9c280
update metadata
notkarenyi Apr 5, 2026
ae36388
Delete preqin-codes-wrds.txt
notkarenyi Apr 5, 2026
85ab2b9
fix source note
notkarenyi Apr 6, 2026
9a50735
editors note and logo
notkarenyi Apr 6, 2026
5e8bb91
editors note
notkarenyi Apr 6, 2026
1a3db88
fix sankey
notkarenyi Apr 6, 2026
914e689
Merge branch 'main' into endowment
notkarenyi Apr 6, 2026
cd3f512
change svg rect to circle
notkarenyi Apr 7, 2026
039cab2
edits for mobile
notkarenyi Apr 7, 2026
f2d3396
Merge branch 'main' into endowment
notkarenyi Apr 7, 2026
1a50dbc
Merge branch 'main' into endowment
notkarenyi Apr 7, 2026
14112b7
Merge branch 'endowment' of https://github.com/chicagomaroon/data-vis…
notkarenyi Apr 7, 2026
6095450
update pub date
notkarenyi Apr 7, 2026
7348f31
typos
notkarenyi Apr 7, 2026
e56f993
adjust title for legibility
notkarenyi Apr 7, 2026
f85e414
try fix logo on safari
notkarenyi Apr 7, 2026
657bdb3
Merge branch 'main' into endowment
notkarenyi Apr 7, 2026
c16d3fa
mobile fixes
notkarenyi Apr 7, 2026
a6e0b81
Merge branch 'main' into endowment
notkarenyi Apr 8, 2026
f58e388
mobile fixes
notkarenyi Apr 8, 2026
1790451
mobile fixes
notkarenyi Apr 8, 2026
00f204e
Merge branch 'main' into endowment
notkarenyi Apr 8, 2026
bb88f11
mobile fixes
notkarenyi Apr 8, 2026
11cd2eb
bug
notkarenyi Apr 8, 2026
c9798a4
centered title
notkarenyi Apr 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 2026/endowment-breakdown/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h1>The UChicago Endowment, Explained</h1>
>Jisoo Yu</a
>
</div>
April 7, 2026
<div class="byline">April 8, 2026</div>
</div>
</div>
<i
Expand Down Expand Up @@ -912,7 +912,7 @@ <h3>
>
<p>
<i
>Editor’s note, April 7 9:00 a.m.: The version of this
>Editor’s note, April 8 9:00 a.m.: The version of this
article published in the April 1 print edition misstated
the sector totals listed in the "Sectors invested in by
the University as of 2025" graphic.</i
Expand Down
28 changes: 14 additions & 14 deletions 2026/endowment-breakdown/static/coi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions 2026/endowment-breakdown/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,29 +269,39 @@ g.sankey {

body {
margin: 0;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}

#title-logo {
width: 250px;
max-width: 250px;
width: 200px;
max-width: 200px;
flex-shrink: 0;
margin: 20px;
}

/* text */

#bylines .byline {
font-size: 12px;
line-height: 16px;
}

h1 {
font-size: 32px;
font-size: 30px;
padding-top: 0;
margin-top: 0;
}

#subtitle {
font-size: 20px;
line-height: 22px;
font-size: 16px;
line-height: 20px;
}

hr {
width: 90% !important;
max-width: 100vw;
margin: 20px;
}

.non-scroller {
Expand All @@ -309,10 +319,6 @@ g.sankey {
height: auto;
}

#intro a img {
height: 30px;
}

#intro {
height: 60vh;
}
Expand All @@ -327,12 +333,6 @@ g.sankey {
width: 90%;
}

.byline,
#bylines {
font-size: 14px;
line-height: 24px;
}

/* chapters */

#chart-div,
Expand Down
51 changes: 26 additions & 25 deletions 2026/endowment-breakdown/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function donutChart(data) {
}
},
textfont: {
size: isMobileLike ? 0.9 * bodyFontSize : bodyFontSize
size: isMobileLike ? 0.8 * bodyFontSize : bodyFontSize
},
customdata: groupedData.map(
(d) =>
Expand Down Expand Up @@ -279,7 +279,7 @@ function circleChart(data, variable) {
},
textfont: {
color: 'white',
size: isMobileLike ? bodyFontSize * 0.85 : bodyFontSize
size: isMobileLike ? bodyFontSize * 0.8 : bodyFontSize
},
text: groupedData.map((val) =>
val.amount_thousands < 10000
Expand Down Expand Up @@ -330,7 +330,7 @@ function facetChart(data) {
type: 'scatter',
mode: 'markers+text',
x: isMobileLike
? [2008.5, 2014, 2017.8, 2022.5]
? [2012.5, 2016.5, 2019.3, 2022.6]
: [2015.8, 2018.4, 2020.6, 2023],
y: sizeLegendValues.map(() => ''),
marker: {
Expand All @@ -339,6 +339,9 @@ function facetChart(data) {
opacity: 1
},
text: ['undisclosed', '$100K', '$500K', '$1M'],
textfont: {
size: isMobileLike ? annotationFontSize : bodyFontSize
},
textposition: 'right',
hoverinfo: 'none'
};
Expand Down Expand Up @@ -584,7 +587,8 @@ function open_url(data) {
}

function captionAdjust() {
return (screenHeight / 670) ** 10;
console.log(Math.log(screenHeight - 300) ** 2.2);
return Math.log(screenHeight - 300) ** 2.2;
}

function detectMobile() {
Expand Down Expand Up @@ -657,7 +661,7 @@ const sequence = {
...layout,
width: isMobileLike ? 700 : null,
margin: {
b: isMobileLike ? 60 + captionAdjust() : 120,
b: isMobileLike ? 1.5 * captionAdjust() : 120,
l: isMobileLike ? 20 : 20
},
title: {
Expand All @@ -683,7 +687,7 @@ const sequence = {
...layout,
width: isMobileLike ? 700 : null,
margin: {
b: isMobileLike ? 60 + captionAdjust() : 120,
b: isMobileLike ? 1.5 * captionAdjust() : 120,
l: isMobileLike ? 20 : 20
},
title: {
Expand All @@ -709,7 +713,7 @@ const sequence = {
...layout,
width: isMobileLike ? 700 : null,
margin: {
b: isMobileLike ? 60 + captionAdjust() : 120,
b: isMobileLike ? 1.5 * captionAdjust() : 120,
l: isMobileLike ? 20 : 20
},
title: {
Expand All @@ -735,7 +739,7 @@ const sequence = {
...layout,
width: isMobileLike ? 700 : null,
margin: {
b: isMobileLike ? 60 + captionAdjust() : 120,
b: isMobileLike ? 1.5 * captionAdjust() : 120,
l: isMobileLike ? 20 : 20
},
title: {
Expand Down Expand Up @@ -763,13 +767,13 @@ const sequence = {
t: isMobileLike ? 60 : 40,
r: isMobileLike ? 0 : 20,
l: 0,
b: isMobileLike ? 60 + captionAdjust() : 140
b: isMobileLike ? 1.5 * captionAdjust() : 140
},
annotations: [
layout['annotations'][0], // keep caption
{
font: {
size: titleFontSize
size: isMobileLike ? bodyFontSize : titleFontSize
},
showarrow: false,
text: 'Total investments<br>$11.8 billion',
Expand All @@ -784,7 +788,7 @@ const sequence = {
'compare-schools': function () {
const layout = createLayout(
(title =
'U.S. college endowments valued at over $10 billion, Fiscal Year 2024'),
'U.S. college endowments over $10 billion, Fiscal Year 2024'),
(caption =
'Source: <a href="https://www.forbes.com/sites/michaeltnietzel/2025/02/12/college-endowments-saw-112-returns-in-fy-24-harvard-still-1/">College Endowments Saw 11.2% Return In FY 2024</a>'),
(showlegend = false)
Expand All @@ -797,7 +801,7 @@ const sequence = {
margin: {
l: 25,
r: isMobileLike ? 25 : 0,
b: isMobileLike ? 45 + captionAdjust() : 150
b: isMobileLike ? 1.2 * captionAdjust() : 150
},
xaxis: {
showgrid: true,
Expand Down Expand Up @@ -840,7 +844,7 @@ const sequence = {
margin: {
l: isMobileLike ? 15 : 25,
r: isMobileLike ? 20 : 25,
b: isMobileLike ? 40 + captionAdjust() : 75,
b: isMobileLike ? captionAdjust() : 75,
t: isMobileLike ? 100 : 90
},
xaxis: {
Expand Down Expand Up @@ -905,8 +909,7 @@ const sequence = {
}));

var layout = createLayout(
(title =
'Change in proportion of endowment by asset type, 2005–2025'),
(title = 'Change in endowment makeup by asset type, 2005–2025'),
(caption =
'Source: <a href="https://intranet.uchicago.edu/tools-and-resources/financial-resources/accounting-and-financial-reporting/financial-statements">University of Chicago financial statements</a>'),
(showlegend = true)
Expand All @@ -924,7 +927,7 @@ const sequence = {
margin: {
l: isMobileLike ? 50 : 220,
r: isMobileLike ? 25 : 0,
b: isMobileLike ? 60 + captionAdjust() : 100
b: isMobileLike ? 1.2 * captionAdjust() : 100
},
xaxis: {
range: [0.01, 1],
Expand Down Expand Up @@ -991,8 +994,7 @@ const sequence = {
d3.select('#chart-div').html(''); // clear previous chart
traces = facetChart(coi_data);
layout = createLayout(
(title =
'Payments to investment managers with conflicts of interest'),
(title = 'Payments to asset managers with conflicts of interest'),
(caption =
'Data on conflicts of interest was not required to be reported before <a href="https://www.irs.gov/pub/irs-prior/i990sl--2013.pdf">2013</a>.<br>Source: University of Chicago <a href="https://projects.propublica.org/nonprofits/organizations/362177139">IRS Form 990</a> filings')
);
Expand All @@ -1018,13 +1020,12 @@ const sequence = {
}
},
margin: {
l: isMobileLike ? 120 : 230,
l: isMobileLike ? 105 : 230,
r: isMobileLike ? 25 : 0,
b: isMobileLike ? 60 + captionAdjust() : 110
b: isMobileLike ? 1.5 * captionAdjust() : 110
},
title: {
...layout.title,
x: isMobileLike ? 0.08 : 0.26,
y: isMobileLike
? 0.78 - ((1000 - screenHeight) / 1000) ** 2.5
: 0.9 // vertical position (1 = top, 0 = bottom)
Expand All @@ -1051,10 +1052,10 @@ var annotationFontSize,
titleFontSize;

async function init() {
window.onbeforeunload = function () {
window.scrollTo(0, 0);
};
hideChart();
// window.onbeforeunload = function () {
// window.scrollTo(0, 0);
// };
// hideChart();

isMobileLike = detectMobile();

Expand Down
Loading