My quiz
This example turns the classic "You Draw It" concept into an interactive multiple-choice quiz. It presents two questions—one about a conference location and one about a speaker—and asks the user to guess the correct answer. The visualization relies on the D3.js v5 library and the `youdrawit` JavaScript library, which manages the chart layout and interaction. The code defines question objects with data arrays containing options and a boolean flag for the correct answer. It also exposes a `globals` object for customizing text, allowing easy localization and styling of the quiz interface. The chart is rendered into a `div` with the class `chart`.
AI-generated descriptionAn example how to make a quiz with you-draw-it with a multiple choice question..
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.