This app implements a generic probability scale component for oTree experiments.
The scale supports:
horizontal or vertical layout
arbitrary numeric range
configurable visual color
All configuration parameters are located in Constants.
SCALE_ORIENTATION = "horizontal"
SCALE_MIN = 25
SCALE_MAX = 100
SCALE_COLOR = "#5f9ea0"
In practice: How to make it run?
Download confscale.zip from this repository
Places the files in your oTree project
Add the confscale folder to your otree main folder
Add the following configuration to the SESSION_CONFIGS list in your settings.py file:
dict(
name='confscale',
display_name="A Probability Scale with adjustable orientation",
app_sequence=['confscale'],
num_demo_participants=10,
),