Question Types#
Question Implementation
Each question type is implemented as a class the class also specifies the HTML/js templates to use for that question type. The constructor documents the logging variables that can be passed. See more on dev/questions
All questions must have certain parameters:
question_textquestion_id
the question_text can include markdown formatting which will be rendered with the markdown package
Normal Curve Questions#
This question has two normal curves, one moves and one does not.
Example#
Settings#
Use figure_type: NormalCurveSlider with the following parameters in figure_values
Tradeoff Questions#
this question type trades off between two two extremes over a number of models in the middle
Both formats accept the same dataset files, where each row represents one bar heigh for one slider location. The values should be compatible with deisplay in the figures, for example converting .74 to 75 to display percentages. There may be extra columns that are not used.
An example (that is used in the example plots):
Line Graph Tradeoff#
This uses lines to show all metrics on one set of axes.
Example#
Settings#
Use figure_type: TradeoffLine with the following parameters for use in figure_values:
Bar Graph Tradeoff#
This uses a set of bar graphs.
Example#
Settings#
Use figure_type: TradeoffBar with the following parameters for use in figure_values