This project was used in a study that used the Mechanical Turk platform to test a series of pie chart variations.
The study is built on the excellent Experimentr.js project.
The collected data files are in the analysis
directory, together with some scripts and the R code to create the figures in the paper.
pie-variations-data.json
: the original data as collected during the study, in JSON formatpie-variations-reshaped-unique.csv
: trial data in CSV format, with incomplete trials removedpie-variations-demographics.csv
: demographics data in CSV formatpredictions.csv
: predicted values for the different charts based on area and arc length, for all angles in half-degree stepspie-variations-enriched.csv
: same aspie-variations-reshaped-unique.csv
but with additional columns for predicted values based on arc length and area
enrich.py
: creates thepredictions.csv
file and adds predictions to the trials data to createpie-variations-enriched.csv
cleanup.py
: parses the original JSON data and reshapes the data into one row per trial, generatespie-variations-reshaped-unique.csv
andpie-variations-demographics.csv
variationviolins.R
: R code to do analysis and generate the figures in the paper
To run the project, you'll need Redis and Node.js.
To start the Redis server, run the following command from the project directory:
redis-server redis.conf
The Node server works on port 80, so it needs root access, and the project is set to use Forever.js to ensure it keeps running:
forever start app.js
Once you have the project running, you can visit localhost in your browser to see the survey.