Quiz

Updated 3 months ago by Flourish team

How to use this template

This template is ideal for showing possible misconceptions, by comparing users' answers with statistical data.

Data requirements

This template consists of 2 sheets. One question sheet, and optionally a score sheet.

At the most basic level, you just need questions and settings for a slider. This can be specified in the questions sheet. If you have data that you want to compare the user's answer with, you can add those in separate columns.

If you'd like to show feedback after answering a question, or show a "correct" answer next to the comparisons. You can do this in the "scores" sheet.

Tips

  • If you want to show different feedback for a range of answers, you can use < or > to capture all the answers below or above a certain number.
  • You can change and translate all the text in this visualisation via the settings panel
  • You can specify the default comparison in the settings panel

Credits

Created by the Flourish team. The sample data in this project come from FAO

API information

Explains to developers how to use this template with the Flourish Live API.

template: _288

version: _34

Design

color_primary color

Primary.

color_secondary color

Secondary.

color_neutral color

Neutral.

color_correct color

Correct.

style_question_size number

Text size.

style_box_border color

Border color.

style_btn_size number

Text size.

color_btn_text color

Text color.

Slider

slider_channel_height number

Channel height.

slider_label_size number

Label size.

slider_comparison_opacity number

Comparison opacity.

Max: 1

slider_handle_fill color

Color.

slider_handle_radius number

Radius.

slider_handle_stroke number

Border.

slider_number_format.prefix string

Prefix. Text to place in front of number

slider_number_format.suffix string

Suffix. Text to place after number

slider_number_format.n_dec number

Decimal places. Use negative integers to round to positive powers of ten (eg -2 rounds to the nearest 100)

Min: -10

Max: 10

slider_number_format.strip_zeros boolean

Remove trailing zeros.

slider_number_format.strip_separator boolean

Hide thousands separator below 10,000. Turn off if you want four-digit numbers to include a separator, e.g. “1,234” rather than “1234”.

slider_number_format.transform_labels boolean

Multiply/divide values.

slider_number_format.transform string

Allowed values:

  • multiply (Multiply by)
  • divide (Divide by)
  • exponentiate (×10 to the power of)

slider_number_format.multiply_divide_constant number

slider_number_format.exponentiate_constant number

Text and translation

text_correct_answer string

Slider correct answer.

text_your_answer string

Slider your answer.

text_submit string

Submit button.

text_dropdown_label string

Dropdown label.

Default comparison

comparison_default string

Default comparison to show.

comparison_dropdown boolean

Let user select default comparison from dropdown.

Header

header.title string

Title.

header.subtitle string

Subtitle.

header.color color

Color.

header.align string

Alignment.

Allowed values:

  • left (fa-align-left)
  • center (fa-align-center)
  • right (fa-align-right)

header.margin number

Margin.

header.margin_advanced boolean

Advanced margin settings.

header.margin_top number

Top.

header.margin_right number

Right.

header.margin_bottom number

Bottom.

header.margin_left number

Left.

Footer

footer.source_name string

Source name.

footer.source_url string

Source url.

footer.multiple_sources boolean

Multiple sources.

footer.source_name_2 string

Source name.

footer.source_url_2 string

Source url.

footer.source_name_3 string

Source name.

footer.source_url_3 string

Source url.

footer.source_label string

Source label.

footer.note string

Note.

footer.size number

Size.

footer.color color

Color.

footer.align string

Alignment.

Allowed values:

  • left (fa-align-left)
  • center (fa-align-center)
  • right (fa-align-right)

footer.margin number

Overall.

footer.margin_top number

Top.

footer.margin_right number

Right.

footer.margin_bottom number

Bottom.

footer.margin_left number

Left.

footer.margin_advanced boolean

Advanced.

Number formatting

localization.input_decimal_separator string

Decimal separator in data sheet. Used for interpreting your data. Only change if data is not displaying on the chart as expected.

Allowed values:

  • . (.)
  • , (,)

localization.output_separators string

Number format to display. How the numbers should appear on chart labels

Allowed values:

  • ,. (12,235.67)
  • ., (12.345,67)
  • . (12235.67)
  • , (12345,67)
  • . (12 235.67)
  • , (12 345,67)