My quiz
This example presents an interactive quiz where users draw their guesses for two questions: the percentage of left-handed people and the number of Winter Olympics volunteers. It shows reference values for comparison, with the bar chart using styled red ticks and a line chart featuring individual reference lines. Built with D3.js v5 and the you-draw-it library, it uses the `youdrawit.chart()` API to manage questions, reference values, and user-drawn interactions. The visualization is driven by data from a gist, with styled reference values via CSS classes like `question-referenceValues` and `referenceLine.line-myLine`.
AI-generated descriptionAn example how to make a quiz with you-draw-it with displaying reference values. Reference values are styled individually. For the bar chart, the option question.referenceShape is set to "tick".
For documentation see https://github.com/EE2dev/you-draw-it
Adopted the you-draw-it implementation from the great work at https://github.com/wdr-data/you-draw-it. Original idea developed by the New York Times.