OptionalclassOptionaldataControls the menu for selecting data sources in questions. You can opt for the full data picker by setting dataPicker = "staged".
OptionalentityAn array that specifies which entity types are available in the data picker
OptionalheightA number or string specifying a CSS size value that specifies the height of the component
OptionalhiddenA list of parameters to hide.
OptionalinitialInitial values for the SQL parameters.
OptionalisWhether to show the save button.
OptionalonA callback function that triggers before saving. Only relevant when isSaveEnabled = true
OptionalonA callback function that triggers when a user clicks the back button.
OptionalonA callback function that triggers when a question is updated, including when a user clicks the Visualize button in the question editor
OptionalonA callback function that triggers when a user saves the question. Only relevant when isSaveEnabled = true
OptionalonA callback function that triggers when the visualization type changes.
the new display type
OptionalpluginsOptionalqueryOptionalquestionThe ID of the question.
This is either:
http://localhost:3000/question/1-my-question where the ID is 1
entity_id key of the question object when using the API directly or using the SDK Collection Browser to return data
new to show the notebook editor for creating new questions
new-native to show the SQL editor for creating new native questionsOptionalstyleA custom style object to be added to the root element.
OptionaltargetThe collection to save the question to. This will hide the collection picker from the save modal. Only applicable to interactive questions.
OptionaltitleDetermines whether the question title is displayed, and allows a custom title to be displayed instead of the default question title. Shown by default.
OptionaltokenA valid JWT token for the guest embed.
OptionalwidthA number or string specifying a CSS size value that specifies the width of the component
OptionalwithEnables the ability to set up alerts on the question.
OptionalwithDetermines whether the chart type selector and corresponding settings button are shown. Only relevant when using the default layout.
OptionalwithEnables the ability to download results in the question.
A custom class name to be added to the root element.