Columns
This page describes how to define and control the columns in you json payload.
You have the ability to control columns data and which are selected by default when the project is loaded in PPTX Builder. By default, the first column is selected in the PPTX Builder platform.
The columns section in the payload is defined as an Array
. All parent columns have to have at least 1 item (sub-column).
Column fields
Name | Type | Required | Description |
text | String | true | The name for the parent column. |
items | Array | true | An |
selected | Boolean | false | This value defines if the column is selected by default. (You need to set the |
Items array
Name | Type | Required | Description |
text | String | true | The name of the sub-column. |
base | Float | true | The base value for this column. |
data | Array | true | The data values for each row. This should reflect the same order as the |
selected | Boolean | false | This value defines if the sub-column is selected by default. |
Example in JSON
JSON
In this example we have can see how to selected the second parent column and its children by default.
If you want to provide columns and items with unique IDs, then all chart columns their items and rows must contain unique IDs.
Last updated