-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
2330 lines (2089 loc) · 68.1 KB
/
index.js
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// const { tryGetPreviewData } = require("next/dist/server/api-utils");
sota.sotaConfig.sections = [
{
slug: "general",
name: "General",
colors: [
"#235085",
"#1065a1",
"#0b88c0",
"#22a7d3",
"#4ac2e5",
"#8dd1e9",
"#c6e6f3",
"#e3f4fb",
],
},
{
slug: "politics",
name: "Politics & Worldview",
colors: [
"#2C3278",
"#5D5797",
"#7D78AD",
"#948EB9",
"#A8A3C6",
"#BFBDD5",
"#ACA0C0",
"#DFDBE7",
],
blurb:
"98 percent of respondents said that they support “the advocacy of women's rights on the ground of the equality of the sexes?” However, 70.4 percent of people said they consider themselves feminists. 77.8 percent of students think that people should always have the right to have an abortion, while 97.7 percent of people supported abortion in at least some circumstances. In addition, 31.6 percent of students believe that white people can experience reverse racism.",
},
{
slug: "campus",
name: "Campus Culture",
colors: ["#762670", "#945E98", "#A77FAD", "#BC98B9", "#D9C6D8"],
blurb:
"Following Divest Andover’s requests, 80.5 percent of students believe that Andover should divest from fossil fuel companies. A 62 percent majority of students believe that the Shuman Office of Admissions does not accurately represent the school. Following the release of the Andover Anti-Racism Task Force (AATF) Report, 18.2 percent of students feel that Andover’s anti-racist work is sufficient. Last year, 28.3 percent of students believed the same.",
},
{
slug: "school",
name: "School",
colors: ["#812F54", "#AA7281", "#BF97A0", "#BF97A0", "#DCC5C3"],
blurb:
"After a shift from online and hybrid schooling during the 2020-2021 school year to primarily in-person learning this year, Andover’s average G.P.A. for the 2021-2022 Winter Term was 5.35. Last year, the average G.P.A. was reported to be 5.50. This year, students reported spending 5.7 hours on average doing coursework each night. This was a 1.17 hour increase from last year’s average of 4.53. Of respondents, 14.6 percent of students believe that a “4” is a good grade.",
},
{
slug: "discipline",
name: "Discipline",
colors: ["#B53432", "#C74F50", "#D47173", "#E4A8A6", "#F0D1CA"],
blurb:
"Andover’s Community Conduct Council (C.C.C.) and Disciplinary Committee (D.C.) are responsible for handling subsequent action when a student has committed a major offense. 45.7 percent of respondents reported cheating on tests, quizzes, or in-class assessments, and 11.4 percent of respondents reported plagiarizing. When correlated with income, 88.5 percent of respondents whose net family income is $35,000 or less believe the C.C.C. and D.C. systems favor students of privileged backgrounds compared to 59.5 percent of respondents whose income is $500,000 or more. 36.5 percent of respondents reported engaging in illegal room visitations, and 68.3 percent of respondents disagree with this year’s changes to room visitation policies.",
},
{
slug: "sex",
name: "Sex",
colors: [
"#D5127D",
"#DF5694",
"#E680A9",
"#ECA8C1",
"#F5BAD1",
"#F8D3DD",
"#fbe7ec",
],
blurb:
"At Andover, 76.6 percent of Juniors, 63.3 percent of Lowers, 48.3 percent of Uppers, and 38.2 percent of Seniors have never engaged in sexual activity—defined as digital, oral, vaginal, or anal sex. 72.3 percent of men feel comfortable telling friends that they masturbate, while only 40 percent of women feel the same way. 1.6 percent of respondents have contracted Sexually Transmitted Infections. ",
},
{
slug: "drugs",
name: "Drugs & Alcohol",
colors: ["#E77929", "#EFA05E", "#F3B572", "#F6CC99", "#FAE3C4"],
blurb:
"Of Andover’s current student population, 55.3 percent of students have consumed alcohol recreationally. Of respondents, 38.4 percent of student leaders have consumed drugs or alcohol on campus, compared to 27.2 percent of non-student leaders. As of this year, XXX percent of students have used pharmaceutical drugs in the hopes of enhancing academic performance (i.e. “study drugs”) during their time at Andover.",
},
{
slug: "wellness",
name: "Wellness",
colors: [
"#69B645",
"#99CB89",
"#98C970",
"#B1D281",
"#CEDFA6",
"#E3EFCE",
"#BAE5AE",
],
blurb:
"Students at Andover on average sleep 6.65 hours a night. 66.9 percent of Andover students feel as though they have an adequate mental and/or emotional support system on campus, with 61.9 percent marking family as a part of this support system while 88.5 percent noted friends and 81.1 percent chose themselves as an aspect of said system. Only 38.0 percent indicated faculty and staff as a part of their support system. Of respondents, 76.3 percent generally consider themselves happy at Andover, while only 52.7 percent of students think that Andover students are happy.",
},
{
slug: "diversity",
name: "Campus Diversity",
colors: ["#279680", "#29AD97", "#78C4B1", "#AEDCCA", "#C8E7DD"],
blurb:
"While 66.1 percent of day students think day students are able to integrate enough with boarding students at Andover this year, while just 37.8 percent agreed. On the basis of socioeconomic equity, 16.9 percent of respondents that feel like their capability of attaining a leadership position is affected by their socioeconomic status are of lower and lower middle class. 67.3 percent of respondents who are black feel as though Andover’s faculty is lacking racial diversity.",
},
{
slug: "senior",
name: "Senior Sota",
colors: [
"#235085",
"#1065a1",
"#0b88c0",
"#22a7d3",
"#4ac2e5",
"#7CB7D1",
"#8dd1e9",
"#c6e6f3",
"#e3f4fb",
],
},
];
sota.setColors(sota.sotaConfig);
sota.setStyles(sota.sotaConfig);
// required only if you want to generate default layout containers. Can also specify directly through HTML and useselectors for graphs
sota.createSections(sota.sotaConfig);
// optional, render navbar based on sotaConfig.sections
// make sure you call createSections first!
sota.sotaNavbar(
sota.sotaConfig,
"",
"assets/graphics/nameplate.png",
false,
"#intro"
);
// ONLINE
window.onload = () => {
// -- GENERAL!! ---
sota.bigNumber({
section: "general",
number: "956",
title: "",
subtitle: "total students responded.",
});
sota.bigNumber({
section: "general",
number: "80.5%",
title: "",
subtitle: "of the student body participated in this survey.",
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/1-class",
totalResp: 945,
displayPercentage: true,
title: "WHAT CLASS ARE YOU IN?",
subtitle: "Editor’s note: four students did not select a class year.",
// 2022!!
});
sota.pieChart({
section: "general",
dataFile: "assets/data/general/3-boarding",
title: "Boarding vs. Day Students",
subtitle: "In a normal year, what would you be enrolled as?",
// 2022!!
});
sota.bigNumber({
section: "general",
number: "184",
title: "",
subtitle: "students responded from the class of 2025.",
});
sota.bigNumber({
section: "general",
number: "265",
title: "",
subtitle: "students responded from the class of 2024.",
});
sota.bigNumber({
section: "general",
number: "265",
title: "",
subtitle: "students responded from the class of 2023.",
});
sota.bigNumber({
section: "general",
number: "238",
title: "",
subtitle: "students responded from the class of 2022.",
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/12-sex",
totalResp: 947,
displayPercentage: true,
title: "WHAT IS YOUR SEX?",
// 2022!!
});
sota.pieChart({
section: "general",
dataFile: "assets/data/general/6-community_type",
title: "Geographic Distribution",
subtitle: "What type of community do you live in?",
// 2022!!
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/13-gender",
totalResp: 944,
displayPercentage: true,
title: "WHAT IS YOUR GENDER IDENTITY?",
// 2022!!
});
// sota.pieChart({
// section: "general",
// dataFile: "assets/data/general/region",
// title: "Region",
// subtitle: "What region are you from?"
// });
sota.barChart({
section: "general",
dataFile: "assets/data/general/14-pronoun",
totalResp: 982,
displayPercentage: true,
title: "What are your preferred gender pronouns?",
subtitle:
"Editor’s note: Respondents were able to select multiple responses.",
// 2022!!
});
sota.columnChart({
section: "general",
dataFile: "assets/data/general/17-race",
totalResp: 1057,
title: "What is your race?",
subtitle:
"Editor’s Note: Respondents were given the option to select more than one answer if applicable.",
// 2022!!
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/18-ethnicity",
totalResp: 1349,
title: "What is your ethnicity?",
subtitle:
"Editor’s Note: Respondents were given the option to select more than one answer if applicable.",
// 2022!!
});
// sota.stackedBarChart({
// section: "general",
// dataFile: "assets/data/general/sexual_orientationXgender",
// labelStyle: "onBar",
// groupLabelStyle: "onBar",
// showLegend: true,
// title: "GENDER IDENTITY AND SEXUAL ORIENTATION",
// subtitle: "Editor’s Note: Correlated statistics from respondents who identify as agender, genderfluid, genderqueer, nonbinary, and other gender identities have been removed in an effort to protect the complete anonymity of these respondents."
// })
sota.barChart({
section: "general",
dataFile: "assets/data/general/15-sexual_orientation",
totalResp: 1028,
displayPercentage: true,
title: "What is your sexual orientation?",
// 2022!!
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/16-romantic_orientation",
totalResp: 1001,
displayPercentage: true,
title: "What is your romantic orientation?",
// 2022!!
});
sota.pieChart({
section: "general",
dataFile: "assets/data/general/21-income",
totalResp: 945,
sorted: false,
title: "NET INCOME",
subtitle: "What is your net family income?",
// 2022!!
});
sota.columnChart({
section: "general",
dataFile: "assets/data/general/22-financial_aid",
totalResp: 967,
title: "Financial Aid",
subtitle: "Are you on any form of financial aid?",
// 2022!!
});
sota.bigNumber({
section: "general",
number: "40.5%",
title: "Financial aid",
subtitle: "of respondents are on financial aid provided by Andover.",
// 2022!!
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/9-parents_college",
totalResp: 946,
displayPercentage: true,
title: "HOW MANY OF YOUR PARENTS GRADUATED FROM COLLEGE?",
// 2022!!
});
sota.stackedBarChart({
section: "general",
dataFile: "assets/data/general/38-incarcerated",
totalResp: 930,
sorted: false,
title: "INCARCERATION",
subtitle: "Do you personally know someone who has been incarcerated?",
// shapeFile: "assets/svgs/handcuff"
// 2022!!
});
sota.bigNumber({
section: "general",
number: "35.0",
title: "Legacy",
subtitle:
"of respondents have at least one immediate family member who is currently attending or has previously attended Andover.",
// 2022!!
});
sota.stackedBarChart({
section: "general",
dataFile: "assets/data/general/legacyXincome",
labelStyle: "onBar",
groupLabelStyle: "onBar",
displayPercentage: true,
showLegend: false,
title: "Legacy and Income",
subtitle:
"Whether or not respondents had at least one immediate family member who was attending or has previously attended Andover, and their income.",
// 2022!
});
sota.stackedBarChart({
section: "general",
dataFile: "assets/data/general/socioeconomicXincome0",
labelStyle: "onBar",
groupLabelStyle: "onBar",
showLegend: false,
title: "Perceived SEC & Income",
subtitle: "Perceived socioeconmic class compared to income of respondents.",
// 2022!!
}); //better if 2 pie charts
sota.pieChart({
section: "general",
dataFile: "assets/data/general/23-varsity",
sorted: false,
title: "Varsity Athletics",
subtitle: "Are you a varsity athlete?",
// 2022!!
});
sota.barChart({
section: "general",
dataFile: "assets/data/general/19-religion",
totalResp: 1075,
displayPercentage: true,
title: "Religious Affiliation",
subtitle:
"With which religion/faith system do you currently identify, if any?",
});
// --- POLITICS!! --
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/24-political_affiliation",
totalResp: 931,
title: "Political Affiliation",
subtitle: "What is your political affiliation?",
// 2022!!
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/politicsXgender",
labelStyle: "onBar",
groupLabelStyle: "onBar",
title: "Political Affiliation & Gender Identity",
subtitle:
"Editor’s Note: Correlated statistics from respondents who identify as agender, genderfluid, genderqueer, nonbinary, and other gender identities have been removed in an effort to protect the complete anonymity of these respondents",
// 2022!!
});
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/27-censorship",
title: "Self-Censorship",
subtitle:
"While at Andover, have you ever felt the need to censor yourself due to your political leaning?",
// 2022!!
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/censorshipXpolitics",
labelStyle: "onBar",
groupLabelStyle: "onBar",
showLegend: true,
title: "Self-Censorship & Political Affiliation",
subtitle:
"Percentage of respondents who answered “Yes” to self-censorship question sorted by political affiliation.",
// 2022!!
});
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/25-shifting_perspectives",
title: "Shifting Perspectives",
subtitle:
"Have your political beliefs d after the increase in media coverage of societal and systemic injustices this past year?",
// 2022!!
});
sota.barChart({
section: "politics",
dataFile: "assets/data/politics/30-news_sources",
totalResp: 926,
displayPercentage: true,
title: "Staying Informed",
subtitle: "How do you get your news?",
// 2022!!
});
sota.bigNumber({
section: "politics",
number: "70.4%",
title: "Feminism",
subtitle: "of respondents consider themselves feminists. ",
// 2022!!
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/35-feminist",
labelStyle: "onBar",
showLegend: true,
title: "Feminism",
subtitle: "Do you consider yourself a feminist?",
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/feministXgender",
labelStyle: "onBar",
groupLabelStyle: "onBar",
showLegend: true,
title: "Feminism By Gender Identity",
subtitle:
"Editor’s Note: Correlated statistics from respondents who identify as agender, genderfluid, genderqueer, nonbinary, and other gender identities have been removed in an effort to protect the complete anonymity of these respondents.",
// 2022!!
});
// sota.columnChart({
// section: "politics",
// dataFile: "assets/data/politics/top_5_news_sources",
// totalResp: 930,
// title: "Top 5 News Sources"
// });
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/28-informed",
sorted: false,
title:
"How informed do you believe you are about politics and/or current events?",
// 2022!!
});
sota.columnChart({
section: "politics",
dataFile: "assets/data/politics/33-blm",
showPercentage: true,
title: "Black Lives Matter",
subtitle: "Do you support the Black Lives Matter movement?",
// 2022!!
});
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/31-affirmative_action",
title: "Affirmative Action",
subtitle: "Do you support affirmative action in academic institutions?",
// 2022!!
});
sota.stackedColumnChart({
section: "politics",
dataFile: "assets/data/politics/affirmative_actionXclass",
title: "Do you support affirmative action in academic institutions?",
subtitle: "Percentage by Class Year",
// 2022!!
});
sota.stackedColumnChart({
section: "politics",
dataFile: "assets/data/politics/affirmative_actionXrace",
title: "Do you support affirmative action in academic institutions?",
subtitle: "Percentage by Race",
// 2022!!
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/affirmativeXgender",
labelStyle: "onBar",
groupLabelStyle: "onBar",
showLegend: true,
title: "Affirmative Action Support By Gender Identity",
subtitle:
"Editor’s Note: Correlated statistics from respondents who identify as agender, genderfluid, genderqueer, nonbinary, and other gender identities have been removed in an effort to protect the complete anonymity of these respondents.",
// 2022!!
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/prison_reformXincarceration",
labelStyle: "onBar",
groupLabelStyle: "onBar",
displayPercentage:true,
showLegend: true,
title: "Prison System",
subtitle:
"Do you believe that the current prison system in the United States should be altered?",
// 2022!!
});
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/36-immigration",
title: "Immigration & Border Security",
subtitle:
"Do you believe that the United States should increase border security?",
// 2022!!
});
sota.bigNumber({
section: "politics",
number: "31.3%",
title: '"Reverse Racism"',
subtitle:
"of respondents believe that white people can experience racism, a decrease from 2021's 33.3%.",
// 2022!!
});
sota.barChart({
section: "politics",
dataFile: "assets/data/politics/32-reverse_racism",
title: '"Reverse Racism"',
subtitle:
"Do you believe that white people can experience racism (colloquially known as reverse racism)? ",
// 2022!!
});
sota.stackedColumnChart({
section: "campus",
dataFile: "assets/data/politics/reverse_racismXrace",
showLegend: true,
groupLabelStyle: "onBar",
labelStyle: "onBar",
title: "Reverse racism by race",
subtitle: "Whether or not respondents believe that white people can experience racism (colloquially known as reverse racism) by race.",
});
sota.stackedBarChart({
section: "politics",
dataFile: "assets/data/politics/37-abortion",
labelStyle: "onBar",
showLegend: true,
title: "Abortion",
subtitle:
"Do you think that people should have the right to have an abortion?",
// 2022!!
});
sota.stackedColumnChart({
section: "politics",
dataFile: "assets/data/politics/abortionXgender",
title:
"Do you think that people should have the right to have an abortion?",
subtitle: "By Gender Identity",
// 2022!!
});
sota.pieChart({
section: "politics",
dataFile: "assets/data/politics/41-drug_regulation",
title: "Drug Regulation",
subtitle: "Do you support the legalization of marijuana?",
// 2022!!
});
sota.bigNumber({
section: "politics",
number: "72.0%",
subtitle:
"of respondents who know someone who has been incarcerated believe drug use should be decriminalized.",
// shapeFile:"assets/svgs/pill-politics"
// 2022!!
});
sota.bigNumber({
section: "politics",
number: "5.91%",
subtitle:
"of respondents who do not know someone who has been incarcerated believe drug use should be decriminalized.",
// 2022!!
});
sota.barChart({
section: "politics",
dataFile: "assets/data/politics/40-capital_punishment",
labelStyle: "onBar",
groupLabelStyle: "onBar",
showLegend: true,
title: "Capital Punishment",
subtitle: "Do you support the death penalty?",
// 2022!!
});
sota.customBarChart({
section: "politics",
dataFile: "assets/data/politics/42-firearms",
title: "Firearm Ownership",
subtitle: "Does your family own firearms?",
shapeFile: "assets/svgs/gun"
// 2022!!
});
sota.bigNumber({
section: "politics",
number: "84.3%",
title: "Gun Control",
subtitle:
"of respondents believe that gun control laws in the United States should be stricter.",
// 2022!!
});
// --- CAMPUS CULTURE!! ----
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/135-combat_climate_change",
showLegend: true,
labelStyle: "onBar",
title: "Climate change",
subtitle:
"Do you feel like Andover is doing enough to combat climate change?",
// 2022!!
});
// sota.pieChart({
// section: "campus",
// dataFile: "assets/data/campus/134-environmental_justice",
// title: "climate education",
// subtitle:
// "Do you feel that environmental issues (global warming, water, and air pollution, etc.) directly impact your life?",
// // 2022!!
// });
// sota.barChart({
// section: "campus",
// dataFile: "assets/data/campus/carbon_footprint",
// displayPercentage: true,
// title: "carbon footprints",
// subtitle:
// "How often do you make conscious decisions to decrease your carbon footprint? A carbon footprint is “a measure of the carbon emissions of a particular individual, organization, or community” (Oxford Dictionary).",
// });
sota.pieChart({
section: "campus",
dataFile: "assets/data/campus/134-environment_impact",
title:
"Do you feel that environmental issues (global warming, water, and air pollution, etc.) directly impact your life?",
// 2022!!
});
// sota.pieChart({
// section: "campus",
// dataFile: "assets/data/campus/divestfossilfuel",
// title: "Do you believe that Andover should divest from fossil fuel companies? Divestment is the act of \"taking money away from where you have invested it\" (Oxford Dictionaries)."
// });
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/divestXpolitical",
showLegend: true,
groupLabelStyle: "onBar",
labelStyle: "onBar",
title: "Fossil Fuels",
subtitle:
"Do you believe that Andover should divest from fossil fuel companies?",
// 2022!!
});
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/128-ideologicaldiversity",
showLegend: true,
labelStyle: "onBar",
title: "ideological diversity",
subtitle:
"Do you think the school promotes ideological diversity in its selection of speakers?",
// 2022!!
});
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/idea_diversityXpolitical",
showLegend: true,
groupLabelStyle: "onBar",
labelStyle: "onBar",
title: "ideological diversity by political affiliation",
subtitle:
"Do you think the school promotes ideological diversity in its selection of speakers?",
// 2022!!
});
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/129-antiracismwork",
showLegend: true,
labelStyle: "onBar",
title: "Anti-racist work",
subtitle: "Do you think Andover’s anti-racist work is sufficient?",
// 2022!!
});
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/antiracismXrace",
showLegend: true,
groupLabelStyle: "onBar",
labelStyle: "onBar",
title: "anti-racist work by race",
subtitle: "Do you think Andover’s anti-racist work is sufficient?",
// 2022!!
});
sota.stackedColumnChart({
section: "campus",
dataFile: "assets/data/campus/antiracismXclass",
showLegend: true,
groupLabelStyle: "onBar",
labelStyle: "onBar",
title: "anti-racist work by class year",
subtitle: "Do you think Andover’s anti-racist work is sufficient?",
// 2022!!
});
// sota.stackedBarChart({
// section: "campus",
// dataFile: "assets/data/campus/antiracismtaskforce",
// showLegend: true,
// labelStyle: "onBar",
// title: "Anti-racism task force",
// subtitle:
// "Do you feel the creation of the Anti-Racism Task Force was a productive choice in making Andover a more racially equitable, inclusive, and just community?",
// });
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/130-indigenousday",
showLegend: true,
labelStyle: "onBar",
title:
'Do you think that Andover should have a "day on" for Indigenous People\'s Day?',
// 2022!!
});
// sota.stackedBarChart({
// section: "campus",
// dataFile: "assets/data/campus/glorifyathletics",
// showLegend: true,
// labelStyle: "onBar",
// title: "Do you think that Andover prioritizes athletics (compared to music, art, robotics, etc.)?",
// });
sota.pieChart({
section: "campus",
dataFile: "assets/data/campus/133-shuman",
title:
"Do you think that the Shuman Office of Admissions accurately presents the school?",
// 2022!!
});
sota.pieChart({
section: "campus",
dataFile: "assets/data/campus/139-supportive",
title: "Support from faculty",
subtitle:
"Which of the faculty/staff members in your life do you feel are supportive of a diverse range of students? Check all that apply.",
// 2022!!
});
// sota.pieChart({
// section: "campus",
// dataFile: "assets/data/campus/combat_climate",
// title: "Do you feel like Andover is doing enough to combat climate change?"
// });
// sota.stackedBarChart({
// section: "campus",
// dataFile: "assets/data/campus/antiracismXclass",
// showLegend: true,
// groupLabelStyle: "onBar",
// labelStyle: "onBar",
// title: "Do you feel the creation of the Anti-Racism Task Force was a productive choice in making Andover a more racially equitable, inclusive, and just community? x class "
// });
sota.stackedBarChart({
section: "campus",
dataFile: "assets/data/campus/prioritizeXvarsity",
showLegend: true,
groupLabelStyle: "onBar",
labelStyle: "onBar",
title:
"Do you think that Andover prioritizes athletics(compared to music, art, robotics, etc.)?",
// 2022!!
});
// --- SCHOOL!! ---
sota.bigNumber({
section: "school",
number: "5.7",
title: "Time Spent on Coursework",
subtitle: "average hours spent on coursework daily, a 1.17 hour increase from 2021 (last year).",
// 2022!!
});
sota.lineGraph({
section: "school",
dataFile: "assets/data/school/113-hours_on_coursework",
minVal: 2,
maxVal: 250,
title: "Hours on coursework",
subtitle: "Q113. How many hours do you spend on coursework outside of class each day?",
// 2022!
});
sota.lineGraph({
section: "school",
dataFile: "assets/data/school/111-gpa",
maxVal: 180,
title: "G.P.A",
subtitle: "What was your rounded Winter 2021-2022 G.P.A.? (If you are between two numbers, round up to the closest decimal – a 5.3 G.P.A. would round to a 5.4. If you earned a Pass or multiple Passes, exclude this from your calculation).",
// 2022!!
});
sota.multiLineGraph({
section: "school",
dataFile: "assets/data/school/gpaXgender",
displayPercentage: true,
maxVal: 24,
minVal: 0,
title: "G.P.A. and Gender",
// 2022!!
});
sota.bigNumber({
section: "school",
number: "5.35",
title: "Overall Average G.P.A (Winter 2021-2022)",
subtitle: "Editor's note: the actual average G.P.A. according to Dean of Students Office was 5.29",
// 2022!!
});
sota.barChart({
section: "school",
dataFile: "assets/data/school/112-4_good",
// totalResp: 854,
title: "Grading Scale",
subtitle: 'Do you think a "4" is a good grade?',
// 2022!!
});
sota.barChart({
section: "school",
dataFile: "assets/data/school/114-department_disparity",
title: "Disparity between teachers",
subtitle: "In which department(s), if any, is/are there an unreasonable grading disparity between teachers? Check all that apply.",
// 2022!!
});
sota.lineGraph({
section: "school",
dataFile: "assets/data/school/gpa2017",
maxVal: 6.0,
minVal: 5.0,
title: "Average G.P.A Since 2017",
subtitle:
"Editor's note: this question uses data from the 2017 to 2022 State of the Academy surveys.",
// 2022!!
});
sota.pieChart({
section: "school",
dataFile: "assets/data/school/115-switch_teacher",
sorted: false,
title: "Switching Teachers",
subtitle:
"Have you ever switched or attempted to switch teachers within the same course in order to attain a better grade?",
// 2022!!
});
sota.stackedColumnChart({
section: "school",
dataFile: "assets/data/school/collegeXclass",
title: "Andover College",
subtitle:
"Do you think attending Andover affets your chances of attending a selective college?",
// 2022!!
});
sota.stackedBarChart({
section: "school",
dataFile: "assets/data/school/119-extracurriculars",
labelStyle: "onBar",
showLegend: true,
title: "On Campus, I ...",
subtitle:
"Do you participate in any extracurriculars because you think they will increase your chances of getting into a selective college?",
// 2022!!
});
sota.pieChart({
section: "school",
dataFile: "assets/data/school/121-teacher_care",
totalResp: 903,
title: "Teacher Support",
subtitle:
"Do you think that the majority of your teachers care about your health and well-being?",
// 2022!!
});
sota.bigNumber({
section: "school",
number: "26.2%",
title: "Teacher Care",
subtitle: "of respondents do not think the majority of their teachers care about their health and well-being.",
// 2022!!
});
sota.pieChart({
section: "school",
dataFile: "assets/data/school/117-student_leader",
sorted: false,
title: "Student Leadership",
subtitle:
"Are you currently a student leader (prefect, proctor, DSM, EBI Senior, Cluster or School Co-President) on campus?",
// 2022!!
});
// sota.pieChart({
// section: "school",
// dataFile: "assets/data/school/board_member",
// sorted: false,
// title: "Are you a board member of a club on campus?",
// });
sota.stackedBarChart({
section: "school",
dataFile: "assets/data/school/122-children",
labelStyle: "onBar",
showLegend: true,
title: "Would you want your children to attend andover?",
// 2022!!
});
sota.stackedBarChart({
section: "school",
dataFile: "assets/data/school/124-family_relationship",
labelStyle: "onBar",
showLegend: true,
title: "Andover and family",
subtitle: