PPTX Builder API
PPTX BuilderBook a demoAccount
v1
v1
  • Introduction
  • Guide
    • Create account
    • Get API token
    • Webhook
    • Preparing your slides
  • Concepts
    • Intro
    • Slide Masters
    • Slide Layouts
    • Placeholders
    • Slide
  • API Reference
    • Authentication
    • JSON to PPTX Builder
      • Request Payload
        • Base Settings
        • Custom Settings
        • Global Chart Settings
        • Slide Settings
        • Chart View Settings
        • Columns
        • Rows
        • Chart title
    • JSON to PPTX
      • Request Payload
        • Base settings
        • Slide Settings
        • Chart View Settings
        • Columns
        • Rows
        • Chart Title
  • Fonts
  • Chart Types
  • Data Labels
  • Chart Settings Specifics
  • Examples
    • JSON to PPTX Builder
    • JSON to PPTX
    • API Token
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. JSON to PPTX
  3. Request Payload

Columns

You have the ability to control columns data. The columns section in the payload is defined as an Array.

Columns fields

Name

Type

Required

Description

text

String

true

The name for the column.

items

Array

true

An Array containing the sub columns.

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 Array of rows defined in the chart settings.

Example in JSON

In this example we can see the correct data structure for 2 columns. In the second column we have two items while in the first column only one item.

{
  "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]
    }]
  }]
}
PreviousChart View SettingsNextRows

Last updated 4 years ago

Was this helpful?