{}OPF
DocsObject referenceEdit on GitHub

Chart

Chart content. The chart object keeps chart-specific fields together so slides and regions do not expose loose chart fields.

Metadata

Definition

#/$defs/Chart

Type

object

Source

spec/schemas/opf.schema.json

Fields

FieldTypeReqDescription
typestringyesChart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand.
dataref:ChartData | ref:ChartDataSourceyesChart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally.

type

Type: string · Required · Default:

Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand.

type.json
{
  "type": "bar"
}

data

Type: ref:ChartData | ref:ChartDataSource · Required · Default:

Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally.

data.json
{
  "data": "data-value"
}