-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
297 lines (261 loc) · 8.33 KB
/
index.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
<!DOCTYPE html>
<meta charset="utf-8">
<title>“In the Text of Women Writers”</title>
<style>
html{
background-color: #fcfcfc;
height: 100vh;
}
body{
font-family: sans-serif;
color: #292826;
}
.header{
margin-left: 40px;
padding: 10px;
}
#title{
font-size: 26px;
font-weight: lighter;
}
#info{
font-weight: lighter;
font-size: 14px;
line-height: 120%;
}
button{
cursor: pointer;
background-color: #fcfcfc;
text-decoration: none;
padding: 10px 20px;
font-weight: normal;
border-radius: 20px;
border: 1px solid #292826;
}
.button-clicked{
color: #fcfcfc;
background-color: #292826;
}
.buttons{
margin-left: 40px;
padding: 10px;
}
h2{
font-size: 12px;
margin: auto;
margin-left: 30px;
font-weight: lighter;
}
#colL-title{
margin-left: 50px;
}
#colC-title{
text-align: center;
margin-left: 0px;
}
#colR-title{
margin-bottom: 5px;
}
#column-left{ float: left; width: 30%; }
#column-right{ float: right; width: 20%; }
#column-center{ display: inline-block; width: 50%; }
#column-left, #column-center, #column-right{
height: 520px;
}
#column-right ol{
overflow: scroll;
height: 480px;
}
.container{
margin: 30px 50px 0;
font-weight: lighter;
}
svg{
padding-top: 40px;
}
.axisColor text{
fill: #292826;
}
.collection{
font-size: 11px;
margin: 10px 0;
line-height: 150%;
cursor: pointer;
}
ol::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}
ol::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
box-shadow: 0 0 1px rgba(255,255,255,.5);
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 50px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px 20px;
border: 1px solid #888;
width: 60%;
font-weight: lighter;
line-height: 120%;
height: 80%;
overflow: scroll;
}
.modal-content p{
font-size: 14px;
padding: 0px 30px;
}
.modal-content ul{
font-size: 14px;
padding: 0px 50px;
}
.modal-content h4{
font-size: 16px;
padding: 0px 30px;
margin-top: 30px;
margin-bottom: 10px;
}
#model-firstp {
padding-top: 30px;
margin-top: 0px;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
#myBtn{
padding-right: 0px;
background-color:none;
border: none;
font-size: 14px;
font-weight: normal;
font-family: sans-serif;
}
#myBtn:hover{
background-color:none;
border: none;
color:#00ACC1;
}
#note{
text-align: center;
font-weight: lighter;
font-size: 14px;
}
</style>
<body>
<div class="header">
<h1 id="title"> In the Text of Women Writers </h1>
<p id="info">
An exploration of the <a href="https://wwp.northeastern.edu/wwo" target="_blank">Women Writers Online</a> text collection<br />
including the top words and phrases of the following encoded elements:
</p>
</div>
<div class="buttons">
<button id="btn-persName" type="button" class="btn-primary">person names</button>
<button id="btn-orgName" type="button" class="btn-primary">organization names</button>
<button id="btn-placeName" type="button" class="btn-primary">place names</button>
</div>
<br />
<div class="container">
<div class="button" id="column-right">
<h2 id="colR-title">List of Texts
<br /><small>[Subscription required: to request a free trial, see <a href="https://wwp.northeastern.edu/wwo/license/" target="_blank">here</a>]</small></h2>
<ol class="list" id="list"></ol>
</div>
<div class="button" id="column-center">
<h2 id="colC-title">Relationship of Top <span id="element">In-text Words</span> to Genre</h2>
</div>
<div class="button" id="column-left">
<h2 id="colL-title">Text Collection by Publication Year</h2>
</div>
</div>
<!-- Trigger/Open The Modal -->
<p id="note">
<button id="myBtn">About this project</button>
| Sarah Campbell, Zheng-yan Yu, Sarah Connell, Cody Dunne
</p>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<p id="model-firstp">This project was designed and developed by Sarah Campbell and Zheng-yan Yu, who are graduate students in the
<a href="https://www.northeastern.edu/visualization/" target="_blank">Information Design and Visualization</a>
MFA program at Northeastern University. The project was developed as a part of the course
<a href="https://codydunne.github.io/cs7295-f17/" target="_blank">CS 7295 Special Topics in Data Visualization</a>,
taught by <a href="https://www.ccis.northeastern.edu/people/cody-dunne/" target="_blank">Cody Dunne</a>.
<a href="https://library.northeastern.edu/about/library-staff-directory/sarah-connell" target="_blank">Sarah Connell</a>,
Assistant Director of the <a href="https://wwp.northeastern.edu">Women Writers Project</a>
at the Northeastern <a href="https://dsg.neu.edu/" target="_blank">Digital Scholarship Group</a>,
served as the project partner. Both Cody and Sarah Connell provided resources, feedback, and subject matter expertise.
</p>
<h4>How to Explore</h4>
<p>
This visualization includes multiple interactions to enable user exploration:
</p>
<ul>
<li>click through the three buttons to visualize one of the three highlighted in-text elements</li>
<li>hover over a filled circle in the scatterplot, the text in the network visualization, or a text in the list
to see the corresponding information across the three components</li>
<li>click on the text in the list to see the text in full on the WWO website</li>
</ul>
<h4>Methodology</h4>
<p>
This data was queried from the Women Writers Online textbase and includes metadata for each of the 401 texts
as well as three in-text elements. Multiple values for each element can exist in each text; for example, a text
can have multiple person names identified. See the <a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/REF-ELEMENTS.html" target="_blank">TEI guidelines</a>
documentation for more about encoding of in-text elements. Below is the original count of in-text element values:
</p>
<ul>
<li>142 texts included 810 unique organization names</li>
<li>396 texts included 19,038 unique place names</li>
<li>399 texts included 49,311 unique person names</li>
</ul>
<p>
The original queried data listed the in-text element values as one string for each text, with separators in between. We parsed
the data so there existed a row for each combination of text and in-text element value; if a text included 10
person names, there would be one line for each name. We then manually aggregated values that were common, like
Catholic Church and Catholike Church. These aggregations were based on sense and were not completed for the entirety
of the data, but were completed enough in order to truly show the most frequent in-text element values.
We visualized the top 20 values for each in-text element and their relationship to texts they reside in.
For more information on accessing the Women Writers Online textbase, please see the <a href="https://wwp.northeastern.edu/wwo/license/" target="_blank">licensing and access</a> page.
</p>
<h4>Links</h4>
<ul>
<li><a href="https://wwp.northeastern.edu/wwo" target="_blank">Women Writers Online</a></li>
<li><a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/REF-ELEMENTS.html" target="_blank">TEI guidelines</a></li>
<li><a href="https://wwp.northeastern.edu/wwo/license/" target="_blank">WWO Licensing and Access</a></li>
</ul>
</div>
</div>
</body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="data.js"></script>
<script src="scatterplot.js"></script>
<script src="network.js"></script>
<script src="list.js"></script>