Chart Settings

This page describes how to set the chart settings and data.

In this section of the request json data you can define one or multiple charts and assign them to a specific placeholder on your pptx template.

The charts section is defined as an Array of charts.

Chart Settings fields

Name

Type

Required

Description

rows

Array

true

List of rows from your data

columns

Array

true

List of columns from your data

view_settings

Object

true

Chart presentation settings

Example in JSON

The example below shows how to setup 2 charts

{
	"charts": [{
		"rows": ["Yes", "No"],
		"columns": [{
			"text": "Work in Progress",
			"items": [{
				"text": "Does it work?",
				"base": 3.0,
				"data": [2.0, 1.0]
			}]
		}],
		"view_settings": {}
	}, {
		"rows": ["Maybe", "Other"],
		"columns": [{
			"text": "Work is done",
			"items": [{
				"text": "Does it work?",
				"base": 5.0,
				"data": [3.0, 2.0]
			}]
		}],
		"view_settings": {}
	}]
}

Last updated