Chart
Defined in: src/core/document-model/types.ts:1547
A parsed chart (§21.2): its type, title, categories, series and rendering options.
Properties
Section titled “Properties”barDir?
Section titled “barDir?”
readonlyoptionalbarDir?:"bar"|"col"
Defined in: src/core/document-model/types.ts:1556
catAxisLine?
Section titled “catAxisLine?”
readonlyoptionalcatAxisLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1588
§21.2.2.196 — the category axis’s own rule.
catAxisReversed?
Section titled “catAxisReversed?”
readonlyoptionalcatAxisReversed?:boolean
Defined in: src/core/document-model/types.ts:1572
§21.2.2.134 c:catAx/c:scaling/c:orientation = maxMin — the category
axis runs the other way. A ranked bar chart is written this way so its
first row reads at the TOP (dataValidationTableRange.xlsx ranks 38 counties
and we printed the ranking upside down).
catAxisTitle?
Section titled “catAxisTitle?”
readonlyoptionalcatAxisTitle?:string
Defined in: src/core/document-model/types.ts:1565
categories
Section titled “categories”
readonlycategories: readonlystring[]
Defined in: src/core/document-model/types.ts:1550
categoriesRef?
Section titled “categoriesRef?”
readonlyoptionalcategoriesRef?:string
Defined in: src/core/document-model/types.ts:1552
§21.2.2.24 c:cat/…/c:f — where the categories live, when uncached.
doughnut?
Section titled “doughnut?”
readonlyoptionaldoughnut?:boolean
Defined in: src/core/document-model/types.ts:1558
frameFillHex?
Section titled “frameFillHex?”
readonlyoptionalframeFillHex?:string
Defined in: src/core/document-model/types.ts:1608
§21.2.2.198 c:chartSpace/c:spPr — the frame around the whole chart: its
background fill and its outline. Excel writes both on every chart it
creates, and both references draw them.
frameFillImage?
Section titled “frameFillImage?”
readonlyoptionalframeFillImage?:object
Defined in: src/core/document-model/types.ts:1614
§20.1.8.14 a:blipFill — the PICTURE the frame is filled with, when it is
filled with one rather than a colour. chart-texture-bg.pptx papers its
whole chart with a woven cloth, and a chart on white is a different chart.
resource
Section titled “resource”
readonlyresource:ResourceId
tiled?
Section titled “tiled?”
readonlyoptionaltiled?:boolean
frameLineDash?
Section titled “frameLineDash?”
readonlyoptionalframeLineDash?:ShapeDash
Defined in: src/core/document-model/types.ts:1618
frameLineHex?
Section titled “frameLineHex?”
readonlyoptionalframeLineHex?:string
Defined in: src/core/document-model/types.ts:1615
frameLineWidthPt?
Section titled “frameLineWidthPt?”
readonlyoptionalframeLineWidthPt?:number
Defined in: src/core/document-model/types.ts:1617
The frame rule’s width and dash, when it states them.
gapPercent?
Section titled “gapPercent?”
readonlyoptionalgapPercent?:number
Defined in: src/core/document-model/types.ts:1564
§21.2.2.75 c:gapWidth — the gap between category slots as a percentage
of the bar width. Absent ⇒ the schema’s 150.
gridLine?
Section titled “gridLine?”
readonlyoptionalgridLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1594
§21.2.2.87 c:majorGridlines/c:spPr/a:ln — the gridlines’ own rule.
grouping?
Section titled “grouping?”
readonlyoptionalgrouping?:"clustered"|"stacked"|"percentStacked"|"standard"
Defined in: src/core/document-model/types.ts:1557
hasLegend
Section titled “hasLegend”
readonlyhasLegend:boolean
Defined in: src/core/document-model/types.ts:1554
legendPos?
Section titled “legendPos?”
readonlyoptionallegendPos?:"r"|"l"|"t"|"b"
Defined in: src/core/document-model/types.ts:1555
lineMarkers?
Section titled “lineMarkers?”
readonlyoptionallineMarkers?:boolean
Defined in: src/core/document-model/types.ts:1586
§21.2.2.106 c:marker on a c:lineChart — whether the group’s series mark
their data points. WithChart.xlsx asks for them and we drew bare lines.
numberFormat?
Section titled “numberFormat?”
readonlyoptionalnumberFormat?:string
Defined in: src/core/document-model/types.ts:1631
§21.2.2.121 c:valAx/c:numFmt@formatCode — the number format the value
axis’s tick labels and the data labels are drawn in, in the same code
grammar cells use (§18.8.31). Absent ⇒ a plain numeric render.
plotFillHex?
Section titled “plotFillHex?”
readonlyoptionalplotFillHex?:string
Defined in: src/core/document-model/types.ts:1624
§21.2.2.145 c:plotArea/c:spPr — the plot rectangle’s own fill and rule,
which sit inside the frame. Chart_Plot_BorderLine_Style.docx rules its plot
in a heavy orange dash-dot.
plotLine?
Section titled “plotLine?”
readonlyoptionalplotLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1625
scatterStyle?
Section titled “scatterStyle?”
readonlyoptionalscatterStyle?:"line"|"none"|"lineMarker"|"marker"|"smooth"|"smoothMarker"
Defined in: src/core/document-model/types.ts:1581
§21.2.2.161 c:scatterStyle — whether a scatter’s points are joined by a
line, marked, or both. The schema’s default is marker; Excel writes
lineMarker for the chart most people insert.
secondaryValAxisLine?
Section titled “secondaryValAxisLine?”
readonlyoptionalsecondaryValAxisLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1592
§21.2.2.196 — the secondary value axis’s own rule.
secondaryValAxisTitle?
Section titled “secondaryValAxisTitle?”
readonlyoptionalsecondaryValAxisTitle?:string
Defined in: src/core/document-model/types.ts:1575
§21.2.2.168 — the title of the secondary value axis, when one is drawn.
series
Section titled “series”
readonlyseries: readonlyChartSeries[]
Defined in: src/core/document-model/types.ts:1553
seriesColorCycle?
Section titled “seriesColorCycle?”
readonlyoptionalseriesColorCycle?: readonlystring[]
Defined in: src/core/document-model/types.ts:1636
MS-ODRAWXML chartColorStyle (colorsN.xml): the cycle of series colours;
overrides the built-in Office accent cycle when present.
showValues?
Section titled “showValues?”
readonlyoptionalshowValues?:boolean
Defined in: src/core/document-model/types.ts:1559
title?
Section titled “title?”
readonlyoptionaltitle?:string
Defined in: src/core/document-model/types.ts:1549
readonlytype:ChartType
Defined in: src/core/document-model/types.ts:1548
valAxisLine?
Section titled “valAxisLine?”
readonlyoptionalvalAxisLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1590
§21.2.2.196 — the value axis’s own rule.
valAxisMax?
Section titled “valAxisMax?”
readonlyoptionalvalAxisMax?:number
Defined in: src/core/document-model/types.ts:1602
valAxisMin?
Section titled “valAxisMin?”
readonlyoptionalvalAxisMin?:number
Defined in: src/core/document-model/types.ts:1601
§21.2.2.157 c:valAx/c:scaling/c:min|c:max — the value axis the AUTHOR
fixed. Absent means “auto”, and only then is the range read off the data:
a chart whose cells all read zero still has the axis its author pinned, and
scaling it to the data drew 0…1 where every reader draws 0…300.
valAxisTitle?
Section titled “valAxisTitle?”
readonlyoptionalvalAxisTitle?:string
Defined in: src/core/document-model/types.ts:1573