In ‘Lay understanding of probability distributions’ Daniel Goldstein and David Rothschild (2014) have highlighted the benefits of using graphical interfaces called distribution builders to study subjective probabilities, perceptions of frequency, and confidence judgements.

However, such distribution builders are not available on common survey platforms (e.g., Qualtrics). distBuilder was created to bridge this gap, and to allow researchers to add fully functional distribution builders to their experiment with minimal effort.

In just three lines of code, you can add a distribution builder to any experiment:

var distbuilder = new DistributionBuilder();
distbuilder.render('targetdiv');
distbuilder.labelize({
labels: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
prefix: "\$"
});


Here is one distBuilder in action:

See the Pen XWXxeVB by Quentin Andre (@QuentinAndre) on CodePen.