Slide Settings
In the slide settings section you provide any information and data related to the slide itself. For example: id
, question_text
, base_text
, rows
and columns.
Slide settings fields
Name
Type
Required
Description
body
Array
true
List of Slides.
table_text
String
true
Slide name.
question_text
String
true
The question text. This will be replaced by the {question}
tag in any placeholder on your pptx template.
base_text
String
false
If provided, it will be inserted into the placeholder with the “{base}” placeholder tag. If not provided, generic base will be used, example: Base: {cross break name} = {corresponding value}
rows
Array
true
Defines the row values of the data
columns
Array
true
Defines the column values of the data
view_settings
Object
true
Here you define the properties of your chart.
Example in JSON
JSON
{
"body": [{
"table_text": "Demo",
"question_text": "What is Demo?",
"base_text": "A Demo is something that is used for presentation!",
"rows": ["Cardiology", "Endocrinology / Diabetology", "General Practice / Family Medicine", "Internal Medicine", "Other"],
"columns": [{
"text": "Total",
"items": [{
"text": "Total n=100",
"base": 100,
"data": [16, 5, 37, 42, 0]
}]
}, {
"text": "Gender",
"items": [{
"text": "Male",
"base": 100,
"data": [16, 5, 37, 42, 0]
}, {
"text": "Female",
"base": 100,
"data": [20, 15, 47, 22, 10]
}]
}],
"view_settings": {
"slide_master_index": 0,
"slide_layout_index": 0,
"placeholder_index": 0,
"chart_type": "bar"
}
}]
}
Last updated
Was this helpful?