Skip to main content
100%

My quiz

✓ Published0🌍 Public
EEE2dev
Last edited Nov 4, 2018
Created on Oct 8, 2018

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 description

An 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.

mit Licensed

Similar vizzes