Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 147 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
807ca4b
Setting up GitHub Classroom Feedback
github-classroom[bot] Apr 30, 2021
b8a0371
code skeleton
jlee1675 May 1, 2021
1aa6f19
fixed scrollama
jlee1675 May 1, 2021
0ac4a4f
two divs
jlee1675 May 2, 2021
48385b8
framework for scrolly
jlee1675 May 2, 2021
8b9b37f
first attempt at age and population
May 3, 2021
19c3fcf
bar charts
jlee1675 May 3, 2021
a641653
installed scrollama :')
May 3, 2021
9dbd21d
first iteration of demographics
May 3, 2021
6d6d6b3
added title page and different font and title image
annzhang22 May 3, 2021
5a38076
changed web title
May 3, 2021
df43803
media mvp
jlee1675 May 3, 2021
5812cd1
first implementation of timeline
May 3, 2021
ae7ad19
merged with main
May 3, 2021
e75bd54
added final visualization images
annzhang22 May 3, 2021
4315044
added .nojekyll
annzhang22 May 3, 2021
acc1bde
finalizing media section
jlee1675 May 3, 2021
3762ba3
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 3, 2021
fdf9a58
add node modules
annzhang22 May 3, 2021
7e732b2
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 3, 2021
a513ade
minor styling
jlee1675 May 3, 2021
a5cb713
added figure background and changed coloring
May 3, 2021
bf6c776
added initial rectangles for final vis
May 13, 2021
032f2bd
added simple tooltip
annzhang22 May 14, 2021
f266fb2
added the modal
annzhang22 May 14, 2021
9695a7d
timeline + title changes
jlee1675 May 15, 2021
77f04b9
fixed merge
jlee1675 May 15, 2021
c33f821
added filter card
annzhang22 May 15, 2021
24eaced
changed final vis
May 15, 2021
ba31e06
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 15, 2021
5525645
added the person card and dropdowns
annzhang22 May 16, 2021
32f2770
fixed styling on the cards, change font to georgia
annzhang22 May 16, 2021
f2b581a
tried to fix checkmark, is still not fully centered
annzhang22 May 16, 2021
f2bca6a
added all the options for demographics to the dropdown
annzhang22 May 16, 2021
2b23e8e
getSources
jlee1675 May 16, 2021
8c6d64b
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 16, 2021
4fd1efc
finished adding content to timeline
jlee1675 May 16, 2021
fa87331
filteringgg
May 16, 2021
5988be4
mergeee
May 16, 2021
96bf3a8
fixed checkbox
May 17, 2021
b0d182e
added data source
jlee1675 May 17, 2021
111357f
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 17, 2021
13eaf1b
added cleaned datasets, reformatted timeline
jlee1675 May 17, 2021
1185179
changed modal to new design
annzhang22 May 17, 2021
54e932b
fixed merge conflict
annzhang22 May 17, 2021
40d7323
tooltip and unit vis reformat
May 17, 2021
17ae403
merged with modal updates
May 17, 2021
9f96236
improved upon newspaper_icon
May 17, 2021
1e3b474
added get sources
jlee1675 May 17, 2021
2fed4fe
added get sources
jlee1675 May 17, 2021
4419224
added title and user input section
annzhang22 May 17, 2021
1d0194c
fixed merge conflict
annzhang22 May 17, 2021
34d0c68
fixed sourcing
jlee1675 May 17, 2021
3a38022
fixed sources
jlee1675 May 17, 2021
53d65f0
small edits
May 17, 2021
fbb2c85
fixed modal styling
annzhang22 May 17, 2021
cd8f9ed
highlight item
jlee1675 May 17, 2021
397c606
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 17, 2021
a1effb7
add user input section
annzhang22 May 17, 2021
28705a0
attempts at sorting
May 17, 2021
70541e4
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 17, 2021
0deb246
changed some of the titles and words
annzhang22 May 18, 2021
2ef606e
initial attempt at connecting person filters
May 18, 2021
36a748d
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 18, 2021
7f3bf33
change to the new final dataset
annzhang22 May 18, 2021
eda807f
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 18, 2021
7d9f389
fixed filtering person
May 18, 2021
cced85e
added function on button click to submit media sources
annzhang22 May 18, 2021
8b965a7
fixed merge conflict
annzhang22 May 18, 2021
d763eb2
added demographics
jlee1675 May 18, 2021
d0967bc
added data sources
jlee1675 May 18, 2021
b9c5ab0
styled tooltip
annzhang22 May 18, 2021
6ba43ef
sort by similarity and highlight
May 18, 2021
d0326da
implemented people filter
May 18, 2021
4b18e95
got highlighting on checkboxes when clicked on
annzhang22 May 18, 2021
7a22b9c
fixed merge conflict
annzhang22 May 18, 2021
d5279d9
styling for final vis
May 18, 2021
68acd55
merged
May 18, 2021
bf87907
more styling changes
May 18, 2021
4247cdb
attempt to resize final vis
May 18, 2021
190937d
another attempt at restyling
May 18, 2021
cd57509
changed and updated for the final dataset
annzhang22 May 18, 2021
90af389
timeline details
jlee1675 May 18, 2021
32acb74
timeline details
jlee1675 May 18, 2021
d9a6fa8
fixed the bias line and add some front page pictures
annzhang22 May 18, 2021
62d3b9c
added shuffle button
May 19, 2021
19ba85d
alphabetized news sources in user input
May 19, 2021
c2a15cf
implemented tool tip for timeline
annzhang22 May 19, 2021
b31c0d9
fixed merge conflicts
annzhang22 May 19, 2021
ae1d2a7
minor fix to the genz color
annzhang22 May 19, 2021
ebd08fe
fixed styling issues
jlee1675 May 19, 2021
3bfc14a
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 19, 2021
2a350d0
fixed line disappearing
jlee1675 May 19, 2021
a8ea5c8
updated ordering of dataset
annzhang22 May 19, 2021
a95302d
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
annzhang22 May 19, 2021
0b3fef1
attempt at capping
May 19, 2021
8a5d3be
added axes
jlee1675 May 19, 2021
76f594d
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 19, 2021
5c8f5d9
implemented capping and styling fixes
May 19, 2021
18dd0e2
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 19, 2021
ec32370
styling for final vis and outro
May 19, 2021
1bbffd9
updated the final allsides
annzhang22 May 19, 2021
6740aaf
merged
annzhang22 May 19, 2021
8bab8d3
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 19, 2021
1d235b3
fixed unicode I HOPE
May 19, 2021
ec40956
fixed small bug
May 19, 2021
e39e2ab
added styling
jlee1675 May 19, 2021
ce1fa55
added styling
jlee1675 May 19, 2021
36b8636
added the pie chart
annzhang22 May 19, 2021
dd65159
fixed merge conflict
annzhang22 May 19, 2021
cc6386f
minor fixes
annzhang22 May 19, 2021
4a8c851
added outro text
May 19, 2021
af08ed7
merged
May 19, 2021
9bc3b33
modal styling
May 19, 2021
c3fd5a5
added more text and ordering of final vis
May 19, 2021
8e6aeb8
more styling and text
May 19, 2021
c0979e1
more styling fixes
May 19, 2021
479174e
text added
jlee1675 May 19, 2021
74c6a55
fixed merge
jlee1675 May 19, 2021
adc76a4
fixed the tooltip and modal
annzhang22 May 19, 2021
54f6357
fixed merge conflict
annzhang22 May 19, 2021
7ef6fd0
fixed submit button
annzhang22 May 19, 2021
406de49
fix the intro more
annzhang22 May 19, 2021
a5277ff
fixed axis
jlee1675 May 19, 2021
0dd67ff
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
jlee1675 May 19, 2021
4ad17eb
fixed submit button
annzhang22 May 19, 2021
377cb6b
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
annzhang22 May 19, 2021
596fb78
image fix
May 19, 2021
67d075d
fix tooltip and modal
annzhang22 May 19, 2021
4c1efc0
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
annzhang22 May 19, 2021
b2d7a8c
bolded stuff
annzhang22 May 19, 2021
9ade70b
project page edits
May 19, 2021
6afe7c0
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 19, 2021
9664fd8
fixed minor typo
May 19, 2021
6122f50
more articles in inspiration
May 19, 2021
335fa20
fixed another typo
May 19, 2021
6a8c5cd
update project page with abstract
May 19, 2021
33afc76
updated video
May 19, 2021
536b94b
name change
May 20, 2021
d0c388f
changed minor phrasing
jlee1675 May 20, 2021
0e20a56
Updated Read Me
annzhang22 May 20, 2021
e13ee27
updated project page
May 20, 2021
e57736d
Merge branch 'main' of https://github.com/6859-sp21/final-project-gen…
May 20, 2021
d86c5e5
added final paper
May 20, 2021
50305d3
Updated Read Me
annzhang22 May 20, 2021
56b36f2
added final folder
May 20, 2021
91b3b67
mergeMerge branch 'main' of https://github.com/6859-sp21/final-projec…
May 20, 2021
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# .gitignore
.DS_Store
Empty file added .nojekyll
Empty file.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# final-project-starter-code
# Bridging the Generational Gap

## Overview

Polarization in U.S politics has been growing in recent years. The “generation gap” between youth and older adults in American society reflects these widening divisions in political viewpoints and media consumption. Even within a family, these gaps between parents and children have the opportunity to cause conflicts and create communication siloes. With our scrollytelly visualization “Bridging the Generational Gap”, we attempt to find common ground in both the news different generations have lived through and the news sources they consume. Using media trend data from Pew Research and headlines from AllSides.com, we also highlight the various media biases and political leanings of many news sources. Our final unit visualization encourages people to learn from others by allowing users to choose from various demographics to build a real reader, step into their perspective, and explore their newsfeed. Though division has become a defining feature of American Politics, our goal is to create a story with interactive visualizations to help each side talk with and understand one another.

## Development Process

### Pre-MVP
We started off by independently exploring various datasets and topics before coming together and sharing our findings. After a few iterations of this and sketching out visualizations for all the topics we were considering, we chose the topic we were the most passionate about and personally invested in-- the generational gap in American politics and particularly between us and our parents! We cycled through many datasets on the topic of politics across different generations before deciding on the Pews Research Dataset.

Next, we brainstormed what features we wanted to include and how we wanted to tell the story to accomplish our overall goal: bridging the gap and finding common understanding between different people. We designed and styled the scrollytelling and final visualization together to have a cohesive idea of the overall visualization. We determined that we wanted to include three main sections 1) Setting up the context for the two generations we were comparing, 2) Exploring the media habits and the relation to politics for each generation, and finally 3) Allow readers to compare their own newsfeed to that of another person, step into their perspective, and bridge the gap. For the MVP, we implemented the basic interactions for the first two sections, and began to design the final visualization in a figma file.

### Post-MVP
We refined the scrollytelling by adding a timeline to encode similar events between the generations. In addition, we added another graph in our scrollytelly to include political ideologies in response to the feedback from our MVP.
We began implementing the final visualization after our MVP. We iterated through different designs and how best to compare the user to different real readers. We chose a newsfeed design with newspaper icons, and scraped Allsides to populate the icons with recent headline data. We also cleaned the Pew Research Dataset and connected it to the newsfeed design so that users could choose different people in the Pew Research Dataset based on different demographics and read their newsfeed.
We implemented many of the interactions after our MVP including all tooltips and modals.


## Work Split
Jessica worked on cleaning the Pew Research Dataset. She also worked on the scrollytelling aspect of the visualization, writing the text, rendering the timeline, and using the Pew Research Dataset to visualize the aggregate statistics. She also worked on designing and styling.

Shirley mainly worked on final visualization, focusing on the rendering and styling of the unit display, sorting and filtering algorithms, and styling for the person card and filters. She also worked on the concluding text and inspiration acknowledgements.

Annie worked on scraping and preprocessing the AllSides data. On the timeline, she implemented the tooltip of the front page articles. She also implemented the interactions in the final visualization including the tooltip and the modal as well as the source bias pie chart.



192 changes: 192 additions & 0 deletions data/allsides.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/allsides.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions data/boomerNews.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NBC News,Fox News,CNN,CBS News,ABC News,MSNBC,PBS,NPR,The New York Times,Washington Post,BBC,The Wall Street Journal,Sean Hannity Show (radio),Rush Limbaugh Show (radio),Politico,USA Today,HuffPost,Time,The Hill,Newsweek,The Guardian,BrietBart,New York Post,Buzzfeed,Business Insider,Washington Examiner,Univision,Vox,Daily Caller,Vice
0.0648508430609598,0.06582360570687419,0.05966277561608301,0.07133592736705577,0.0654993514915694,0.10149156939040208,0.11348897535667964,0.30544747081712065,0.13748378728923477,0.14980544747081712,0.1929312581063554,0.13618677042801555,0.31744487678339817,0.2438391699092088,0.374189364461738,0.11835278858625162,0.32684824902723736,0.16504539559014267,0.5820363164721142,0.1501297016861219,0.47503242542153046,0.4458495460440986,0.3002594033722438,0.44487678339818415,0.6809338521400778,0.585603112840467,0.6018158236057068,0.7603761348897535,0.7869649805447471,0.851491569390402
0.48184176394293127,0.5,0.5149156939040207,0.5136186770428015,0.5252918287937743,0.541828793774319,0.5392347600518806,0.377431906614786,0.5810635538261998,0.6070038910505836,0.564526588845655,0.6595330739299611,0.5022697795071336,0.5898184176394293,0.48216601815823606,0.7561608300907912,0.5680933852140078,0.743514915693904,0.3398184176394293,0.7782101167315175,0.45363164721141375,0.49286640726329445,0.6413748378728924,0.5100518806744487,0.2840466926070039,0.38035019455252916,0.36802853437094685,0.21238651102464332,0.188715953307393,0.1309987029831388
0.45330739299610895,0.4341763942931258,0.4254215304798962,0.4150453955901427,0.4092088197146563,0.35667963683527887,0.3472762645914397,0.31712062256809337,0.2814526588845655,0.24319066147859922,0.24254215304798962,0.20428015564202334,0.18028534370946822,0.16634241245136186,0.14364461738002593,0.1254863813229572,0.10505836575875487,0.0914396887159533,0.07814526588845655,0.07166018158236057,0.07133592736705577,0.061284046692607,0.058365758754863814,0.045071335927367055,0.03501945525291829,0.03404669260700389,0.030155642023346304,0.027237354085603113,0.024319066147859923,0.017509727626459144
9 changes: 9 additions & 0 deletions data/boomerNewsSource.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Yes
0.45330739299610895
0.4254215304798962
0.2814526588845655
0.4341763942931258
0.31712062256809337
0.24254215304798962
0.20428015564202334
0.18028534370946822
9 changes: 9 additions & 0 deletions data/boomerNewsSource2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source,Yes
CNN,0.42542153
New York Times,0.281452659
NBC ,0.453307393
NPR,0.317120623
BBC,0.242542153
Wall Street Journal,0.204280156
Fox ,0.434176394
Sean Hannity Show,0.180285344
Loading