Chart
Defined in: src/core/document-model/types.ts:1774
A parsed chart (§21.2): its type, title, categories, series and rendering options.
Properties
Section titled “Properties”backWall?
Section titled “backWall?”
readonlyoptionalbackWall?:ChartSurface
Defined in: src/core/document-model/types.ts:1826
§21.2.2.11 c:backWall — the wall behind the bars; absent, nothing drawn.
bar3D?
Section titled “bar3D?”
readonlyoptionalbar3D?:object
Defined in: src/core/document-model/types.ts:1814
§21.2.2.15 c:bar3DChart with §21.2.2.228 c:view3D — bars drawn as
boxes standing in a box of walls and a floor, seen at an angle with the
axes kept square: rotX the elevation and rotY the turn in degrees,
depthPercent a bar’s depth as a percentage of its width, gapDepth the
room before and behind it as a percentage of its depth.
depthPercent
Section titled “depthPercent”
readonlydepthPercent:number
gapDepth
Section titled “gapDepth”
readonlygapDepth:number
readonlyrotX:number
readonlyrotY:number
barDir?
Section titled “barDir?”
readonlyoptionalbarDir?:"bar"|"col"
Defined in: src/core/document-model/types.ts:1798
catAxisCrosses?
Section titled “catAxisCrosses?”
readonlyoptionalcatAxisCrosses?:number|"min"|"max"
Defined in: src/core/document-model/types.ts:1878
§21.2.2.33/§21.2.2.34 c:catAx/c:crosses, c:crossesAt — where along the
value axis the category axis lies, and so where bars grow from: at the
axis’s minimum or maximum, or at a stated value. Absent ⇒ autoZero, at
zero (or the end of the value axis nearest it).
catAxisDeleted?
Section titled “catAxisDeleted?”
readonlyoptionalcatAxisDeleted?:boolean
Defined in: src/core/document-model/types.ts:1925
§21.2.2.40 c:delete — the author deleted the category axis (a scatter’s
x axis): neither its rule nor its labels are drawn, nor room kept for them.
catAxisLine?
Section titled “catAxisLine?”
readonlyoptionalcatAxisLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1908
§21.2.2.196 — the category axis’s own rule.
catAxisReversed?
Section titled “catAxisReversed?”
readonlyoptionalcatAxisReversed?:boolean
Defined in: src/core/document-model/types.ts:1871
§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:1864
categories
Section titled “categories”
readonlycategories: readonlystring[]
Defined in: src/core/document-model/types.ts:1783
categoriesRef?
Section titled “categoriesRef?”
readonlyoptionalcategoriesRef?:string
Defined in: src/core/document-model/types.ts:1785
§21.2.2.24 c:cat/…/c:f — where the categories live, when uncached.
categoryGroups?
Section titled “categoryGroups?”
readonlyoptionalcategoryGroups?: readonly readonlyobject[][]
Defined in: src/core/document-model/types.ts:1792
§21.2.2.115 c:multiLvlStrCache — the outer levels of a category axis
labelled on more than one: each level’s groups, innermost level first,
each group from the category it starts at to the next group’s start.
Chart.categories is the innermost level, one label per category.
catTickLabelPos?
Section titled “catTickLabelPos?”
readonlyoptionalcatTickLabelPos?:"none"|"low"|"high"
Defined in: src/core/document-model/types.ts:1885
§21.2.2.207 c:catAx/c:tickLblPos — where the category labels stand: at
the low or high end of the value axis, or nowhere. Absent ⇒ nextTo,
beside the category axis wherever it crosses — on the zero line of a chart
with values below zero.
dataLabels?
Section titled “dataLabels?”
readonlyoptionaldataLabels?:ChartDataLabels
Defined in: src/core/document-model/types.ts:1852
§21.2.2.49 — the data labels’ switches, when the chart has a c:dLbls at
all. Absent, it labels nothing.
doughnut?
Section titled “doughnut?”
readonlyoptionaldoughnut?:boolean
Defined in: src/core/document-model/types.ts:1800
firstSliceAngle?
Section titled “firstSliceAngle?”
readonlyoptionalfirstSliceAngle?:number
Defined in: src/core/document-model/types.ts:1830
§21.2.2.68 c:firstSliceAng — a flat pie’s first slice, degrees clockwise from twelve.
floor?
Section titled “floor?”
readonlyoptionalfloor?:ChartSurface
Defined in: src/core/document-model/types.ts:1824
§21.2.2.69 c:floor — a 3-D chart’s floor, the wall its bars stand on:
its fill and its rule. Absent, it is unfilled and ruled in light grey.
frameFillHex?
Section titled “frameFillHex?”
readonlyoptionalframeFillHex?:string
Defined in: src/core/document-model/types.ts:1956
§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:1962
§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:1966
frameLineHex?
Section titled “frameLineHex?”
readonlyoptionalframeLineHex?:string
Defined in: src/core/document-model/types.ts:1963
frameLineWidthPt?
Section titled “frameLineWidthPt?”
readonlyoptionalframeLineWidthPt?:number
Defined in: src/core/document-model/types.ts:1965
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:1857
§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:1918
§21.2.2.100 c:majorGridlines of the value axis (a scatter’s upright one)
— its own rule (§21.2.2.197 c:spPr/a:ln). An axis without the element
rules nothing, which reads { none: true }; absent, the default rule.
grouping?
Section titled “grouping?”
readonlyoptionalgrouping?:"clustered"|"stacked"|"percentStacked"|"standard"
Defined in: src/core/document-model/types.ts:1799
hasLegend
Section titled “hasLegend”
readonlyhasLegend:boolean
Defined in: src/core/document-model/types.ts:1796
legendPos?
Section titled “legendPos?”
readonlyoptionallegendPos?:"r"|"l"|"t"|"b"
Defined in: src/core/document-model/types.ts:1797
lineMarkers?
Section titled “lineMarkers?”
readonlyoptionallineMarkers?:boolean
Defined in: src/core/document-model/types.ts:1906
§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:1979
§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.
overlapPercent?
Section titled “overlapPercent?”
readonlyoptionaloverlapPercent?:number
Defined in: src/core/document-model/types.ts:1863
§21.2.2.131 c:overlap — how far the bars of one category’s cluster lie
over each other, as a percentage of a bar’s width: −100 a bar’s width
apart … 100 one on the next. Absent ⇒ 0, bars side by side.
pie3D?
Section titled “pie3D?”
readonlyoptionalpie3D?:object
Defined in: src/core/document-model/types.ts:1806
§21.2.2.140 c:pie3DChart with §21.2.2.228 c:view3D — a pie drawn as a
tilted disc: rotX the elevation in degrees (90 looks straight down),
rotY how far its first slice is turned clockwise from twelve o’clock.
readonlyrotX:number
readonlyrotY:number
plotBox?
Section titled “plotBox?”
readonlyoptionalplotBox?:object
Defined in: src/core/document-model/types.ts:1836
§21.2.2.104 c:plotArea/c:layout/c:manualLayout in edge mode — the box
the author sized the plot to, as fractions of the chart from its top
left; a pie is fitted into it whole, keeping its shape.
readonlyh:number
inner?
Section titled “inner?”
readonlyoptionalinner?:boolean
c:layoutTarget inner — the box is the plot’s own rectangle, the
axes’ labels outside it; else (outer) it holds them too.
readonlyw:number
readonlyx:number
readonlyy:number
plotFillHex?
Section titled “plotFillHex?”
readonlyoptionalplotFillHex?:string
Defined in: src/core/document-model/types.ts:1972
§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:1973
scatterStyle?
Section titled “scatterStyle?”
readonlyoptionalscatterStyle?:"line"|"none"|"lineMarker"|"marker"|"smooth"|"smoothMarker"
Defined in: src/core/document-model/types.ts:1901
§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:1912
§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:1895
§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:1795
seriesColorCycle?
Section titled “seriesColorCycle?”
readonlyoptionalseriesColorCycle?: readonlystring[]
Defined in: src/core/document-model/types.ts:1984
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:1847
sideWall?
Section titled “sideWall?”
readonlyoptionalsideWall?:ChartSurface
Defined in: src/core/document-model/types.ts:1828
§21.2.2.191 c:sideWall — the wall beside them; absent, nothing drawn.
readonlyoptionaltext?:ChartTextStyles
Defined in: src/core/document-model/types.ts:1782
The chart’s text, role by role, as its application sets it. Absent when the reader resolves none: the renderer then keeps its own sizes and greys in the document’s base face.
title?
Section titled “title?”
readonlyoptionaltitle?:string
Defined in: src/core/document-model/types.ts:1776
readonlytype:ChartType
Defined in: src/core/document-model/types.ts:1775
valAxisCrosses?
Section titled “valAxisCrosses?”
readonlyoptionalvalAxisCrosses?:number|"min"|"max"
Defined in: src/core/document-model/types.ts:1892
§21.2.2.33 c:valAx/c:crosses — where along the category axis the value
axis lies: at the last category (max) or the first (absent, autoZero).
The first is at the far end when the categories run backwards
(Chart.catAxisReversed): a ranked bar chart has its values on top.
valAxisDeleted?
Section titled “valAxisDeleted?”
readonlyoptionalvalAxisDeleted?:boolean
Defined in: src/core/document-model/types.ts:1927
§21.2.2.40 — …or the value axis (a scatter’s upright one).
valAxisLine?
Section titled “valAxisLine?”
readonlyoptionalvalAxisLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1910
§21.2.2.196 — the value axis’s own rule.
valAxisMajorUnit?
Section titled “valAxisMajorUnit?”
readonlyoptionalvalAxisMajorUnit?:number
Defined in: src/core/document-model/types.ts:1940
§21.2.2.103 c:valAx/c:majorUnit — the step between the value axis’s
labels, when the author fixed it. Absent ⇒ the application’s own choice.
valAxisMax?
Section titled “valAxisMax?”
readonlyoptionalvalAxisMax?:number
Defined in: src/core/document-model/types.ts:1935
valAxisMin?
Section titled “valAxisMin?”
readonlyoptionalvalAxisMin?:number
Defined in: src/core/document-model/types.ts:1934
§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:1893
xAxisMajorUnit?
Section titled “xAxisMajorUnit?”
readonlyoptionalxAxisMajorUnit?:number
Defined in: src/core/document-model/types.ts:1949
xAxisMax?
Section titled “xAxisMax?”
readonlyoptionalxAxisMax?:number
Defined in: src/core/document-model/types.ts:1948
xAxisMin?
Section titled “xAxisMin?”
readonlyoptionalxAxisMin?:number
Defined in: src/core/document-model/types.ts:1947
§21.2.2.226 — a scatter’s lying value axis, the x’s: the ends and step the author fixed and its number format, as Chart.valAxisMin, Chart.valAxisMax, Chart.valAxisMajorUnit and Chart.numberFormat are its upright one’s.
xGridLine?
Section titled “xGridLine?”
readonlyoptionalxGridLine?:ChartLineStyle
Defined in: src/core/document-model/types.ts:1920
The same for a scatter’s lying (x) axis.
xNumberFormat?
Section titled “xNumberFormat?”
readonlyoptionalxNumberFormat?:string
Defined in: src/core/document-model/types.ts:1950