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

Implement results page with real participant summary data #2

Open
drishya-nair opened this issue Jun 10, 2024 · 0 comments
Open

Implement results page with real participant summary data #2

drishya-nair opened this issue Jun 10, 2024 · 0 comments

Comments

@drishya-nair
Copy link
Member

For the 20 questions study, a temporary results page has been implemented since we do not have the data for the bar graph yet.

  1. For saving the results data in a manner that can be used for the graph, the design I have come up with is:

country_data = {
"country": params.country,
"personalPercentage": (personalScore/totalNumOfPoints) * 100,
"relationshipsPercentage": (relationshipsScore/totalNumOfPoints) * 100,
}

In other words, each participant's country and two score related percentages are saved in a data package.

  1. For the mock version of the data summary, we have used the participant's scores and the scores of Kenyans and Americans from the article: https://www.tandfonline.com/doi/pdf/10.1207/s15324834basp1902_7.

The design I have come up with using this data is using chart.js to create a grouped bar graph where each country has a private and collectivist percentage. The code for this chart can be found in results.js.

nigini pushed a commit that referenced this issue Dec 12, 2024
nigini pushed a commit that referenced this issue Dec 12, 2024
* Removingnot necessary study cats code

* Implemented IRB, demographics, instructions, and practice elements of Frame Line study

* fixed issue with carousel indicators not being active

* Halfway done with practice content

* finished box outlines for practice

* fixed line drawing bug

* fixed line erasure issue

* added boundaries for lines drawn within boxes

* added missing text for practice content

* debugging results calculation percentage off by

* fixed percentage results bugs, fixed drawing line exceeding square bug, fixed edge case with buttons

* finished trial boxes for absolute trials + bug fixes

* finished main trial content + infinite loop with line drawing fixed

* fixed arrow not displaying bug, added time delay for absolute trials, finished larger boxed trials

* fixed logic error related to box sizing

* added average calculation

* added relative task instructions

* added all relative trials

* finished the entire framed-line project (minus minor styllistic changes)

* fixed bar graph display error

* Finished all results page related fixes

* fixed result bar errors and  redid code to fit old box sizes

* changed arrows to only show up when practice is finished.

* all code refactoring done, moved some global vars to study manager

* added all touch screen arrow buttons

* fixed some responsiveness issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant