The flourishcharts packages are provided by Canva as open source software under the MIT license(opens in a new tab or window).

Usage

def bind_calculator_data(
self,
question_text: str = None,
question_type: str = None,
context_text: str = None,
image: str = None,
answers_raw: str = None,
fallback_value: str = None
)
PYTHON
bind_calculator_data(
.,
question_text = NULL,
question_type = NULL,
context_text = NULL,
image = NULL,
answers_raw = NULL,
fallback_value = NULL
)
R

Arguments

Arguments
Type hint
Description
self
Flourish
Returns the Flourish object
question_text
str, optional
Question text. The question text. Flourish type hint: column
question_type
str, optional
Question type. The type of question. Choose from number input, text input, single response buttons, multi response buttons, dropdown, single date picker, range date picker, multi date picker, rating, single slider or range slider. Leave empty to just display text. Flourish type hint: column
context_text
str, optional
Question context. Additional information. Flourish type hint: column
image
str, optional
Image. Question background image. Add an image URL or right-click on a cell to upload an image. Flourish type hint: column
answers_raw
str, optional
Answers. Answer values separated by "::". Required for single and multi-response buttons, dropdown and rating questions. Rating answers can take optional labels per value noted as "Value >> Label" - for example, "1 >> Bad :: 2 :: 3 >> Good". Number inputs can take range specifications in the format "min: 0 :: max: 50 :: step: 2". Slider inputs can take slider specifications in the format "min: 0 :: max: 100 :: value: 10". Use two comma separated values for range sliders, eg.: "value: 1, 100". See the templates documentation for additional info. Flourish type hint: column
fallback_value
str, optional
Fallback value. Fallback value to fill the answer input if left empty by the user. Works for all question types but sliders, which will always show the initial value. Flourish type hint: column
Arguments
Description
.
Returns the Flourish object
question_text
Question text. The question text. Flourish type hint: column
question_type
Question type. The type of question. Choose from number input, text input, single response buttons, multi response buttons, dropdown, single date picker, range date picker, multi date picker, rating, single slider or range slider. Leave empty to just display text. Flourish type hint: column
context_text
Question context. Additional information. Flourish type hint: column
image
Image. Question background image. Add an image URL or right-click on a cell to upload an image. Flourish type hint: column
answers_raw
Answers. Answer values separated by "::". Required for single and multi-response buttons, dropdown and rating questions. Rating answers can take optional labels per value noted as "Value >> Label" - for example, "1 >> Bad :: 2 :: 3 >> Good". Number inputs can take range specifications in the format "min: 0 :: max: 50 :: step: 2". Slider inputs can take slider specifications in the format "min: 0 :: max: 100 :: value: 10". Use two comma separated values for range sliders, eg.: "value: 1, 100". See the templates documentation for additional info. Flourish type hint: column
fallback_value
Fallback value. Fallback value to fill the answer input if left empty by the user. Works for all question types but sliders, which will always show the initial value. Flourish type hint: column