Appearance
@shbernal/pptxgenjs / index / ChartOptsInternal
Interface: ChartOptsInternal
Defined in: core-interfaces.ts:2902
Extends
Properties
_type?
optional_type?:ChartType|ChartMulti[]
Defined in: core-interfaces.ts:2903
align?
optionalalign?:HAlign
Defined in: core-interfaces.ts:542
Horizontal alignment
Default
ts
'left'Inherited from
altText?
optionalaltText?:string
Defined in: core-interfaces.ts:2889
Alt Text value ("How would you describe this object and its contents to someone who is blind?")
- PowerPoint: [right-click on a chart] > "Edit Alt Text..."
Inherited from
axisPos?
optionalaxisPos?:"r"|"b"|"l"|"t"
Defined in: core-interfaces.ts:2389
Axis position
Inherited from
bar3DShape?
optionalbar3DShape?:string
Defined in: core-interfaces.ts:2636
Inherited from
barDir?
optionalbarDir?:string
Defined in: core-interfaces.ts:2637
Inherited from
barGapDepthPct?
optionalbarGapDepthPct?:number
Defined in: core-interfaces.ts:2638
Inherited from
barGapWidthPct?
optionalbarGapWidthPct?:number
Defined in: core-interfaces.ts:2645
MS-PPT > Format chart > Format Data Point > Series Options > "Gap Width"
- width (percent)
- range:
0-500
Default
ts
150Inherited from
barGrouping?
optionalbarGrouping?:string
Defined in: core-interfaces.ts:2646
Inherited from
barOverlapPct?
optionalbarOverlapPct?:number
Defined in: core-interfaces.ts:2653
MS-PPT > Format chart > Format Data Point > Series Options > "Series Overlap"
- overlap (percent)
- range:
-100-100
Default
ts
0Inherited from
barSeriesLine?
optionalbarSeriesLine?:boolean|OptsChartGridLine
Defined in: core-interfaces.ts:2667
Draw connector lines between data points across stacked bar/column series ("Series Lines" in PowerPoint). Emits <c:serLines> in the bar chart.
trueuses PowerPoint's automatic line styling.- An OptsChartGridLine object customizes color/size/style/cap.
- Omit (or pass an object with
style: 'none') to disable.
Bar (bar) charts only; ignored for 3D bar charts.
Default
ts
undefinedExamples
ts
truets
{ color: '777777', size: 1, style: 'dash' }Inherited from
bold?
optionalbold?:boolean
Defined in: core-interfaces.ts:547
Bold style
Default
ts
falseInherited from
breakLine?
optionalbreakLine?:boolean
Defined in: core-interfaces.ts:552
Add a line-break
Default
ts
falseInherited from
bullet?
optionalbullet?:boolean| {characterCode?:string;color?:string;fontFace?:string;image?: {data?:string;path?:string; };indent?:number;numberStartAt?:number;numberType?:"alphaLcParenBoth"|"alphaLcParenR"|"alphaLcPeriod"|"alphaUcParenBoth"|"alphaUcParenR"|"alphaUcPeriod"|"arabicParenBoth"|"arabicParenR"|"arabicPeriod"|"arabicPlain"|"romanLcParenBoth"|"romanLcParenR"|"romanLcPeriod"|"romanUcParenBoth"|"romanUcParenR"|"romanUcPeriod";size?:number;type?:"number"|"bullet"; }
Defined in: core-interfaces.ts:567
Add standard or custom bullet
- use
truefor standard bullet - pass object options for custom bullet
Union Members
boolean
Type Literal
{ characterCode?: string; color?: string; fontFace?: string; image?: { data?: string; path?: string; }; indent?: number; numberStartAt?: number; numberType?: "alphaLcParenBoth" | "alphaLcParenR" | "alphaLcPeriod" | "alphaUcParenBoth" | "alphaUcParenR" | "alphaUcPeriod" | "arabicParenBoth" | "arabicParenR" | "arabicPeriod" | "arabicPlain" | "romanLcParenBoth" | "romanLcParenR" | "romanLcPeriod" | "romanUcParenBoth" | "romanUcParenR" | "romanUcPeriod"; size?: number; type?: "number" | "bullet"; }
characterCode?
optionalcharacterCode?:string
Bullet character code (unicode)
Example
ts
'25BA' // 'BLACK RIGHT-POINTING POINTER' (U+25BA)color?
optionalcolor?:string
Bullet glyph color (separate from the text run color)
Example
ts
'FF0000' // red bulletfontFace?
optionalfontFace?:string
Bullet glyph font typeface (<a:buFont/>), e.g. for symbol-font bullets
Example
ts
'Wingdings' // render `characterCode` using the Wingdings fontimage?
optionalimage?:object
Image to use as the bullet glyph ("picture bullet", <a:buBlip>)
- supply an image
path(filesystem/URL) or base64data(same forms asaddImage()) - raster formats (PNG/JPG/GIF) and SVG are supported; use
sizeto scale relative to the text height - SVG bullets embed a PNG preview plus the SVG (the same dual-rel handling as
addImage()) - takes precedence over
type/characterCodewhen set
Examples
ts
image: { path: 'images/star.png' }ts
image: { data: 'image/png;base64,iVBOR...' }ts
image: { path: 'images/star.svg' }image.data?
optionaldata?:string
image.path?
optionalpath?:string
indent?
optionalindent?:number
Indentation (space between bullet and text) (points)
Default
ts
27 // DEF_BULLET_MARGINExample
ts
10 // Indents text 10 points from bulletnumberStartAt?
optionalnumberStartAt?:number
Number bullets start at
Default
ts
1Example
ts
10 // numbered bullets start with 10numberType?
optionalnumberType?:"alphaLcParenBoth"|"alphaLcParenR"|"alphaLcPeriod"|"alphaUcParenBoth"|"alphaUcParenR"|"alphaUcPeriod"|"arabicParenBoth"|"arabicParenR"|"arabicPeriod"|"arabicPlain"|"romanLcParenBoth"|"romanLcParenR"|"romanLcPeriod"|"romanUcParenBoth"|"romanUcParenR"|"romanUcPeriod"
Number type
Example
ts
'romanLcParenR' // roman numerals lower-case with paranthesis rightsize?
optionalsize?:number
Bullet glyph size as a percentage of the run's text size (25–400)
Default
ts
100Example
ts
80 // bullet glyph is 80% of the text sizetype?
optionaltype?:"number"|"bullet"
Bullet type
Default
ts
bulletDefault
ts
falseInherited from
cap?
optionalcap?:LineCap
Defined in: core-interfaces.ts:2343
MS-PPT > Chart format > Format Major Gridlines > Line > Cap type
- line cap type
Default
ts
flatInherited from
caps?
optionalcaps?:"small"|"all"|"none"
Defined in: core-interfaces.ts:659
Text capitalization
'all'= ALL CAPS'small'= Small Caps'none'= no override (default)- PowerPoint: Font > Effects > All Caps / Small Caps
Inherited from
catAxes?
optionalcatAxes?:ChartPropsAxisCat[]
Defined in: core-interfaces.ts:2493
Multi-Chart prop: array of cat axes
Inherited from
catAxisBaseTimeUnit?
optionalcatAxisBaseTimeUnit?:string
Defined in: core-interfaces.ts:2494
Inherited from
catAxisCrossesAt?
optionalcatAxisCrossesAt?:number|"autoZero"
Defined in: core-interfaces.ts:2495
Inherited from
catAxisHidden?
optionalcatAxisHidden?:boolean
Defined in: core-interfaces.ts:2496
Inherited from
catAxisLabelColor?
optionalcatAxisLabelColor?:string
Defined in: core-interfaces.ts:2497
Inherited from
catAxisLabelFontBold?
optionalcatAxisLabelFontBold?:boolean
Defined in: core-interfaces.ts:2498
Inherited from
ChartOpts.catAxisLabelFontBold
catAxisLabelFontFace?
optionalcatAxisLabelFontFace?:string
Defined in: core-interfaces.ts:2499
Inherited from
ChartOpts.catAxisLabelFontFace
catAxisLabelFontItalic?
optionalcatAxisLabelFontItalic?:boolean
Defined in: core-interfaces.ts:2500
Inherited from
ChartOpts.catAxisLabelFontItalic
catAxisLabelFontSize?
optionalcatAxisLabelFontSize?:number
Defined in: core-interfaces.ts:2501
Inherited from
ChartOpts.catAxisLabelFontSize
catAxisLabelFormatCode?
optionalcatAxisLabelFormatCode?:string
Defined in: core-interfaces.ts:2508
Number format code for the category (X) axis labels on scatter and bubble charts. Falls back to valAxisLabelFormatCode when not set.
- Example:
'0.00','#,##0','mmm yyyy' - PowerPoint: Format Axis > Number > Format Code
Inherited from
ChartOpts.catAxisLabelFormatCode
catAxisLabelFrequency?
optionalcatAxisLabelFrequency?:string
Defined in: core-interfaces.ts:2509
Inherited from
ChartOpts.catAxisLabelFrequency
catAxisLabelPos?
optionalcatAxisLabelPos?:"none"|"high"|"low"|"nextTo"
Defined in: core-interfaces.ts:2510
Inherited from
catAxisLabelRotate?
optionalcatAxisLabelRotate?:number
Defined in: core-interfaces.ts:2511
Inherited from
catAxisLineColor?
optionalcatAxisLineColor?:string
Defined in: core-interfaces.ts:2512
Inherited from
catAxisLineShow?
optionalcatAxisLineShow?:boolean
Defined in: core-interfaces.ts:2513
Inherited from
catAxisLineSize?
optionalcatAxisLineSize?:number
Defined in: core-interfaces.ts:2514
Inherited from
catAxisLineStyle?
optionalcatAxisLineStyle?:"dash"|"solid"|"dot"
Defined in: core-interfaces.ts:2515
Inherited from
catAxisMajorTickMark?
optionalcatAxisMajorTickMark?:ChartAxisTickMark
Defined in: core-interfaces.ts:2516
Inherited from
ChartOpts.catAxisMajorTickMark
catAxisMajorTimeUnit?
optionalcatAxisMajorTimeUnit?:string
Defined in: core-interfaces.ts:2517
Inherited from
ChartOpts.catAxisMajorTimeUnit
catAxisMajorUnit?
optionalcatAxisMajorUnit?:number
Defined in: core-interfaces.ts:2518
Inherited from
catAxisMaxVal?
optionalcatAxisMaxVal?:number
Defined in: core-interfaces.ts:2519
Inherited from
catAxisMinorTickMark?
optionalcatAxisMinorTickMark?:ChartAxisTickMark
Defined in: core-interfaces.ts:2520
Inherited from
ChartOpts.catAxisMinorTickMark
catAxisMinorTimeUnit?
optionalcatAxisMinorTimeUnit?:string
Defined in: core-interfaces.ts:2521
Inherited from
ChartOpts.catAxisMinorTimeUnit
catAxisMinorUnit?
optionalcatAxisMinorUnit?:number
Defined in: core-interfaces.ts:2522
Inherited from
catAxisMinVal?
optionalcatAxisMinVal?:number
Defined in: core-interfaces.ts:2523
Inherited from
catAxisMultiLevelLabels?
optionalcatAxisMultiLevelLabels?:boolean
Defined in: core-interfaces.ts:2524
Inherited from
ChartOpts.catAxisMultiLevelLabels
catAxisOrientation?
optionalcatAxisOrientation?:"minMax"|"maxMin"
Defined in: core-interfaces.ts:2525
Inherited from
catAxisTitle?
optionalcatAxisTitle?:string
Defined in: core-interfaces.ts:2526
Inherited from
catAxisTitleColor?
optionalcatAxisTitleColor?:string
Defined in: core-interfaces.ts:2527
Inherited from
catAxisTitleFontFace?
optionalcatAxisTitleFontFace?:string
Defined in: core-interfaces.ts:2528
Inherited from
ChartOpts.catAxisTitleFontFace
catAxisTitleFontSize?
optionalcatAxisTitleFontSize?:number
Defined in: core-interfaces.ts:2529
Inherited from
ChartOpts.catAxisTitleFontSize
catAxisTitleRotate?
optionalcatAxisTitleRotate?:number
Defined in: core-interfaces.ts:2530
Inherited from
catGridLine?
optionalcatGridLine?:OptsChartGridLine
Defined in: core-interfaces.ts:2531
Inherited from
catLabelFormatCode?
optionalcatLabelFormatCode?:string
Defined in: core-interfaces.ts:2532
Inherited from
chartArea?
optionalchartArea?:ChartAreaProps
Defined in: core-interfaces.ts:2476
PowerPoint: Format Chart Area (Fill & Border/Line)
Inherited from
chartColors?
optionalchartColors?:string[]
Defined in: core-interfaces.ts:2390
Inherited from
chartColorsOpacity?
optionalchartColorsOpacity?:number
Defined in: core-interfaces.ts:2395
opacity (0 - 100)
Example
ts
50 // 50% opaqueInherited from
color?
optionalcolor?:string
Defined in: core-interfaces.ts:667
Text color
HexColororThemeColor- MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Color
Examples
ts
'FF0000' // hex color (red)ts
pptx.SchemeColor.text1 // Theme color (Text1)Inherited from
dataBorder?
optionaldataBorder?:BorderProps
Defined in: core-interfaces.ts:2396
Inherited from
dataLabelBkgrdColors?
optionaldataLabelBkgrdColors?:boolean
Defined in: core-interfaces.ts:2790
Inherited from
ChartOpts.dataLabelBkgrdColors
dataLabelColor?
optionaldataLabelColor?:string
Defined in: core-interfaces.ts:2791
Inherited from
dataLabelFontBold?
optionaldataLabelFontBold?:boolean
Defined in: core-interfaces.ts:2792
Inherited from
dataLabelFontFace?
optionaldataLabelFontFace?:string
Defined in: core-interfaces.ts:2793
Inherited from
dataLabelFontItalic?
optionaldataLabelFontItalic?:boolean
Defined in: core-interfaces.ts:2794
Inherited from
dataLabelFontSize?
optionaldataLabelFontSize?:number
Defined in: core-interfaces.ts:2795
Inherited from
dataLabelFormatCode?
optionaldataLabelFormatCode?:string
Defined in: core-interfaces.ts:2802
Data label format code
Examples
ts
'#%' // round percentts
'0.00%' // shows values as '0.00%'ts
'$0.00' // shows values as '$0.00'Inherited from
dataLabelFormatScatter?
optionaldataLabelFormatScatter?:"custom"|"customXY"|"XY"
Defined in: core-interfaces.ts:2803
Inherited from
ChartOpts.dataLabelFormatScatter
dataLabelPosition?
optionaldataLabelPosition?:"r"|"b"|"l"|"ctr"|"t"|"bestFit"|"inEnd"|"outEnd"
Defined in: core-interfaces.ts:2804
Inherited from
dataNoEffects?
optionaldataNoEffects?:boolean
Defined in: core-interfaces.ts:2670
Inherited from
dataTableFontSize?
optionaldataTableFontSize?:number
Defined in: core-interfaces.ts:2807
Inherited from
dataTableFormatCode?
optionaldataTableFormatCode?:string
Defined in: core-interfaces.ts:2814
Data table format code
Examples
ts
'#%' // round percentts
'0.00%' // shows values as '0.00%'ts
'$0.00' // shows values as '$0.00'Inherited from
displayBlanksAs?
optionaldisplayBlanksAs?:"zero"|"gap"|"span"
Defined in: core-interfaces.ts:2397
Inherited from
firstSliceAng?
optionalfirstSliceAng?:number
Defined in: core-interfaces.ts:2739
MS-PPT > Format chart > Format Data Series > Series Options > "Angle of first slice"
- angle (degrees)
- range: 0-359
Default
ts
0Inherited from
fontFace?
optionalfontFace?:string
Defined in: core-interfaces.ts:677
Font face name
Applied to the Latin (<a:latin>) and complex-script (<a:cs>) font slots, matching how PowerPoint writes a font picked from the UI. The East Asian slot (<a:ea>) is left to inherit from the theme unless fontFaceEA is set — forcing a Latin-only face into the East Asian slot duplicates/ghosts text in Office 365.
Example
ts
'Arial' // Arial fontInherited from
fontFaceEA?
optionalfontFaceEA?:string
Defined in: core-interfaces.ts:685
East Asian font face name (<a:ea> slot), used to render CJK (Chinese/Japanese/Korean) glyphs
Set this when the East Asian font differs from fontFace. When omitted, <a:ea> inherits the theme East Asian font, which is what PowerPoint does for Latin fonts.
Example
ts
'微軟正黑體' // render East Asian glyphs with Microsoft JhengHeiInherited from
fontSize?
optionalfontSize?:number
Defined in: core-interfaces.ts:690
Font size
Example
ts
12 // Font size 12Inherited from
h?
optionalh?:Coord
Defined in: core-interfaces.ts:61
Height
- inches or percentage
Examples
ts
10.25 // height in inchests
'75%' // height as percentage of slide sizeInherited from
highlight?
optionalhighlight?:string
Defined in: core-interfaces.ts:695
Text highlight color (hex format)
Example
ts
'FFFF00' // yellowInherited from
holeSize?
optionalholeSize?:number
Defined in: core-interfaces.ts:2671
Inherited from
invertedColors?
optionalinvertedColors?:string[]
Defined in: core-interfaces.ts:2398
Inherited from
italic?
optionalitalic?:boolean
Defined in: core-interfaces.ts:700
italic style
Default
ts
falseInherited from
lang?
optionallang?:string
Defined in: core-interfaces.ts:2399
language
- ISO 639-1 standard language code
Default
ts
'en-US' // english USExample
ts
'fr-CA' // french CanadianInherited from
layout?
optionallayout?:PositionProps
Defined in: core-interfaces.ts:2400
Inherited from
leaderLineColor?
optionalleaderLineColor?:string
Defined in: core-interfaces.ts:2418
Leader line color (pie/doughnut data labels). Requires showLeaderLines: true. When omitted, PowerPoint applies its automatic leader-line color.
Example
ts
'FF0000' // red leader linesInherited from
leaderLineSize?
optionalleaderLineSize?:number
Defined in: core-interfaces.ts:2424
Leader line width, in points (pie/doughnut data labels). Requires showLeaderLines: true.
Default
ts
0.75Example
ts
1.5Inherited from
legendColor?
optionallegendColor?:string
Defined in: core-interfaces.ts:2826
Inherited from
legendFontFace?
optionallegendFontFace?:string
Defined in: core-interfaces.ts:2827
Inherited from
legendFontSize?
optionallegendFontSize?:number
Defined in: core-interfaces.ts:2828
Inherited from
legendLayout?
optionallegendLayout?:PositionProps
Defined in: core-interfaces.ts:2842
Manual legend placement within the chart area.
Each of x/y/w/h is a fraction (0-1) of the chart's width/height. x/y position the legend's top-left corner relative to the chart edge; w/h set its size. Each axis is independent: provide only x to move the legend horizontally while leaving vertical placement and size automatic. Setting this overrides the automatic placement implied by legendPos.
Has no effect unless showLegend is true.
Example
ts
{ x: 0.7, y: 0.3, w: 0.25, h: 0.4 }Inherited from
legendPos?
optionallegendPos?:"r"|"b"|"tr"|"l"|"t"
Defined in: core-interfaces.ts:2843
Inherited from
lineCap?
optionallineCap?:LineCap
Defined in: core-interfaces.ts:2679
MS-PPT > Chart format > Format Data Series > Line > Cap type
- line cap type
Default
ts
flatInherited from
lineDash?
optionallineDash?:ChartLineDash
Defined in: core-interfaces.ts:2685
MS-PPT > Chart format > Format Data Series > Line > Dash type (chart-level default)
- applies to every series that has no entry in
lineDashValues
Default
ts
solidInherited from
lineDashValues?
optionallineDashValues?:ChartLineDash[]
Defined in: core-interfaces.ts:2691
Per-series dash type overrides; index matches the series order in the data array.
- entries shorter than the series count fall back to
lineDash - example:
['solid', 'dash', 'lgDash']gives each series its own dash pattern
Inherited from
lineDataSymbol?
optionallineDataSymbol?:"none"|"square"|"triangle"|"circle"|"dash"|"diamond"|"dot"
Defined in: core-interfaces.ts:2697
MS-PPT > Chart format > Format Data Series > Marker Options > Built-in > Type
- marker type
Default
ts
circleInherited from
lineDataSymbolLineColor?
optionallineDataSymbolLineColor?:string
Defined in: core-interfaces.ts:2703
MS-PPT > Chart format > Format Data Series > [Marker Options] > Border > Color
- border color
Default
ts
circleInherited from
ChartOpts.lineDataSymbolLineColor
lineDataSymbolLineSize?
optionallineDataSymbolLineSize?:number
Defined in: core-interfaces.ts:2709
MS-PPT > Chart format > Format Data Series > [Marker Options] > Border > Width
- border width (points)
Default
ts
0.75Inherited from
ChartOpts.lineDataSymbolLineSize
lineDataSymbolSize?
optionallineDataSymbolSize?:number
Defined in: core-interfaces.ts:2716
MS-PPT > Chart format > Format Data Series > Marker Options > Built-in > Size
- marker size
- range: 2-72
Default
ts
6Inherited from
lineSize?
optionallineSize?:number
Defined in: core-interfaces.ts:2723
MS-PPT > Chart format > Format Data Series > Line > Width
- line width (points)
- range: 0-1584
Default
ts
2Inherited from
lineSmooth?
optionallineSmooth?:boolean
Defined in: core-interfaces.ts:2729
MS-PPT > Chart format > Format Data Series > Line > Smoothed line
- "Smoothed line"
Default
ts
falseInherited from
metadata?
optionalmetadata?:Record<string,string>
Defined in: core-interfaces.ts:2900
Custom chart-level metadata, emitted as a schema-valid extension on the chart space (c:chartSpace/c:extLst) under a stable PptxGenJS vendor GUID.
- Use for round-trippable, machine-readable annotations a consumer wants to travel with the chart (e.g. a source-data id, a generator tag, a semantic role). PowerPoint preserves the extension untouched and ignores it for rendering.
- Keys must be non-empty strings; values must be strings. Invalid entries are dropped with a console warning rather than emitting degenerate XML.
Example
ts
{ sourceId: 'q3-revenue', generator: 'my-deck-tool' }Inherited from
objectLock?
optionalobjectLock?:ObjectLockProps
Defined in: core-interfaces.ts:811
Object lock flags (DrawingML a:spLocks / a:picLocks / a:graphicFrameLocks)
- restrict how the object can be manipulated in PowerPoint (e.g. prevent moving, resizing, or grouping)
- each flag maps 1:1 to the OOXML attribute of the same name; only flags set to
trueare emitted - PowerPoint UI: Selection Pane / right-click protections (most locks are honored at edit time, not as a password)
- flags only apply to the object types that support them (see each flag); flags set on an unsupported object type are ignored with a console warning
Examples
ts
{ noMove: true, noResize: true } // pin an object in placets
{ noGrp: true } // exclude from groupingInherited from
objectName?
optionalobjectName?:string
Defined in: core-interfaces.ts:793
Object name
- used instead of default "Object N" name
- PowerPoint: Home > Arrange > Selection Pane...
Default
ts
'Object 1'Example
ts
'Antenna Design 9'Inherited from
plotArea?
optionalplotArea?:ChartPropsFillLine
Defined in: core-interfaces.ts:2480
PowerPoint: Format Plot Area (Fill & Border/Line)
Inherited from
radarStyle?
optionalradarStyle?:"standard"|"marker"|"radar"|"markers"|"filled"
Defined in: core-interfaces.ts:2747
Radar chart sub-type, named to match the PowerPoint UI ("Radar", "Radar with Markers", "Filled Radar").
Default
ts
radarInherited from
secondaryCatAxis?
optionalsecondaryCatAxis?:boolean
Defined in: core-interfaces.ts:2537
Whether data should use secondary category axis (instead of primary)
Default
ts
falseInherited from
secondaryValAxis?
optionalsecondaryValAxis?:boolean
Defined in: core-interfaces.ts:2571
Whether data should use secondary value axis (instead of primary)
Default
ts
falseInherited from
serAxisBaseTimeUnit?
optionalserAxisBaseTimeUnit?:string
Defined in: core-interfaces.ts:2541
Inherited from
serAxisHidden?
optionalserAxisHidden?:boolean
Defined in: core-interfaces.ts:2542
Inherited from
serAxisLabelColor?
optionalserAxisLabelColor?:string
Defined in: core-interfaces.ts:2543
Inherited from
serAxisLabelFontBold?
optionalserAxisLabelFontBold?:boolean
Defined in: core-interfaces.ts:2544
Inherited from
ChartOpts.serAxisLabelFontBold
serAxisLabelFontFace?
optionalserAxisLabelFontFace?:string
Defined in: core-interfaces.ts:2545
Inherited from
ChartOpts.serAxisLabelFontFace
serAxisLabelFontItalic?
optionalserAxisLabelFontItalic?:boolean
Defined in: core-interfaces.ts:2546
Inherited from
ChartOpts.serAxisLabelFontItalic
serAxisLabelFontSize?
optionalserAxisLabelFontSize?:number
Defined in: core-interfaces.ts:2547
Inherited from
ChartOpts.serAxisLabelFontSize
serAxisLabelFrequency?
optionalserAxisLabelFrequency?:string
Defined in: core-interfaces.ts:2548
Inherited from
ChartOpts.serAxisLabelFrequency
serAxisLabelPos?
optionalserAxisLabelPos?:"none"|"high"|"low"|"nextTo"
Defined in: core-interfaces.ts:2549
Inherited from
serAxisLineColor?
optionalserAxisLineColor?:string
Defined in: core-interfaces.ts:2550
Inherited from
serAxisLineShow?
optionalserAxisLineShow?:boolean
Defined in: core-interfaces.ts:2551
Inherited from
serAxisMajorTimeUnit?
optionalserAxisMajorTimeUnit?:string
Defined in: core-interfaces.ts:2552
Inherited from
ChartOpts.serAxisMajorTimeUnit
serAxisMajorUnit?
optionalserAxisMajorUnit?:number
Defined in: core-interfaces.ts:2553
Inherited from
serAxisMinorTimeUnit?
optionalserAxisMinorTimeUnit?:string
Defined in: core-interfaces.ts:2554
Inherited from
ChartOpts.serAxisMinorTimeUnit
serAxisMinorUnit?
optionalserAxisMinorUnit?:number
Defined in: core-interfaces.ts:2555
Inherited from
serAxisOrientation?
optionalserAxisOrientation?:string
Defined in: core-interfaces.ts:2556
Inherited from
serAxisTitle?
optionalserAxisTitle?:string
Defined in: core-interfaces.ts:2557
Inherited from
serAxisTitleColor?
optionalserAxisTitleColor?:string
Defined in: core-interfaces.ts:2558
Inherited from
serAxisTitleFontFace?
optionalserAxisTitleFontFace?:string
Defined in: core-interfaces.ts:2559
Inherited from
ChartOpts.serAxisTitleFontFace
serAxisTitleFontSize?
optionalserAxisTitleFontSize?:number
Defined in: core-interfaces.ts:2560
Inherited from
ChartOpts.serAxisTitleFontSize
serAxisTitleRotate?
optionalserAxisTitleRotate?:number
Defined in: core-interfaces.ts:2561
Inherited from
serGridLine?
optionalserGridLine?:OptsChartGridLine
Defined in: core-interfaces.ts:2562
Inherited from
seriesOptions?
optionalseriesOptions?:ChartSeriesOpts[]
Defined in: core-interfaces.ts:2487
Per-series style overrides. Element at index N applies to the series at data[N]. Missing indices or unset fields fall back to the chart-level option.
Inherited from
serLabelFormatCode?
optionalserLabelFormatCode?:string
Defined in: core-interfaces.ts:2563
Inherited from
shadow?
optionalshadow?:ShadowProps
Defined in: core-interfaces.ts:2401
Inherited from
showBubbleSize?
optionalshowBubbleSize?:boolean
Defined in: core-interfaces.ts:2407
Show each bubble's size value as a data label (bubble / bubble3D charts only). Has no effect on other chart types.
Default
ts
falseInherited from
showCatAxisTitle?
optionalshowCatAxisTitle?:boolean
Defined in: core-interfaces.ts:2538
Inherited from
showDataTable?
optionalshowDataTable?:boolean
Defined in: core-interfaces.ts:2819
Whether to show a data table adjacent to the chart
Default
ts
falseInherited from
showDataTableHorzBorder?
optionalshowDataTableHorzBorder?:boolean
Defined in: core-interfaces.ts:2820
Inherited from
ChartOpts.showDataTableHorzBorder
showDataTableKeys?
optionalshowDataTableKeys?:boolean
Defined in: core-interfaces.ts:2821
Inherited from
showDataTableOutline?
optionalshowDataTableOutline?:boolean
Defined in: core-interfaces.ts:2822
Inherited from
ChartOpts.showDataTableOutline
showDataTableVertBorder?
optionalshowDataTableVertBorder?:boolean
Defined in: core-interfaces.ts:2823
Inherited from
ChartOpts.showDataTableVertBorder
showLabel?
optionalshowLabel?:boolean
Defined in: core-interfaces.ts:2411
Default
ts
falseInherited from
showLeaderLines?
optionalshowLeaderLines?:boolean
Defined in: core-interfaces.ts:2412
Inherited from
showLegend?
optionalshowLegend?:boolean
Defined in: core-interfaces.ts:2428
Default
ts
falseInherited from
showPercent?
optionalshowPercent?:boolean
Defined in: core-interfaces.ts:2432
Default
ts
falseInherited from
showSerAxisTitle?
optionalshowSerAxisTitle?:boolean
Defined in: core-interfaces.ts:2564
Inherited from
showSerName?
optionalshowSerName?:boolean
Defined in: core-interfaces.ts:2436
Default
ts
falseInherited from
showTitle?
optionalshowTitle?:boolean
Defined in: core-interfaces.ts:2440
Default
ts
falseInherited from
showValAxisTitle?
optionalshowValAxisTitle?:boolean
Defined in: core-interfaces.ts:2572
Inherited from
showValue?
optionalshowValue?:boolean
Defined in: core-interfaces.ts:2444
Default
ts
falseInherited from
size?
optionalsize?:number
Defined in: core-interfaces.ts:2352
Gridline size (points)
Inherited from
softBreakBefore?
optionalsoftBreakBefore?:boolean
Defined in: core-interfaces.ts:712
Add a soft line-break (shift+enter) before line text content
Default
ts
falseInherited from
style?
optionalstyle?:"none"|"dash"|"solid"|"dot"
Defined in: core-interfaces.ts:2356
Gridline style
Inherited from
tabStops?
optionaltabStops?:object[]
Defined in: core-interfaces.ts:718
tab stops
- PowerPoint: Paragraph > Tabs > Tab stop position
alignment?
optionalalignment?:"r"|"l"|"ctr"|"dec"
position
position:
number
Example
ts
[{ position:1 }, { position:3 }] // Set first tab stop to 1 inch, set second tab stop to 3 inchesInherited from
textDirection?
optionaltextDirection?:"horz"|"vert"|"vert270"|"wordArtVert"
Defined in: core-interfaces.ts:727
text direction horz = horizontal vert = rotate 90^ vert270 = rotate 270^ wordArtVert = stacked
Default
ts
'horz'Inherited from
textWarp?
optionaltextWarp?:string
Defined in: core-interfaces.ts:560
Preset text warp / WordArt shape (<a:bodyPr><a:prstTxWarp prst="..">), which bends the text along a preset path (arch, circle, wave, …). The value is an OOXML ST_TextShapeType preset name.
Examples
ts
'textArchUp' // bend text along an upward arch (e.g. a label following a ring/arc)ts
'textCircle'Inherited from
title?
optionaltitle?:string
Defined in: core-interfaces.ts:2846
Inherited from
titleAlign?
optionaltitleAlign?:string
Defined in: core-interfaces.ts:2847
Inherited from
titleBold?
optionaltitleBold?:boolean
Defined in: core-interfaces.ts:2848
Inherited from
titleColor?
optionaltitleColor?:string
Defined in: core-interfaces.ts:2849
Inherited from
titleFontFace?
optionaltitleFontFace?:string
Defined in: core-interfaces.ts:2850
Inherited from
titleFontSize?
optionaltitleFontSize?:number
Defined in: core-interfaces.ts:2851
Inherited from
titleItalic?
optionaltitleItalic?:boolean
Defined in: core-interfaces.ts:2852
Inherited from
titlePos?
optionaltitlePos?:object
Defined in: core-interfaces.ts:2859
Manual title position (inches), relative to the chart. Each axis is independent: omit x to keep automatic horizontal centering, or omit y to keep automatic vertical placement. Provide at least one.
x?
optionalx?:number
y?
optionaly?:number
Inherited from
titleRotate?
optionaltitleRotate?:number
Defined in: core-interfaces.ts:2860
Inherited from
titleUnderline?
optionaltitleUnderline?:boolean
Defined in: core-interfaces.ts:2853
Inherited from
transparency?
optionaltransparency?:number
Defined in: core-interfaces.ts:734
Transparency (percent)
- MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Transparency
- range: 0-100
Default
ts
0Inherited from
type?
optionaltype?:"area"|"line"|"pie"|"bar"|"bar3D"|"bubble"|"bubble3D"|"doughnut"|"radar"|"scatter"
Defined in: core-interfaces.ts:2884
Chart type — required when using the canonical addChart(data, options) signature.
- Omit only for multi-type (combo) charts, where each
ChartMultientry carries its owntype.
Inherited from
underline?
optionalunderline?:object
Defined in: core-interfaces.ts:740
underline properties
- PowerPoint: Font > Color & Underline > Underline Style/Underline Color
color?
optionalcolor?:string
style?
optionalstyle?:"none"|"dash"|"dashHeavy"|"dashLong"|"dashLongHeavy"|"dbl"|"dotDash"|"dotDashHeave"|"dotDotDash"|"dotDotDashHeavy"|"dotted"|"dottedHeavy"|"heavy"|"sng"|"wavy"|"wavyDbl"|"wavyHeavy"
Default
ts
(none)Inherited from
v3DPerspective?
optionalv3DPerspective?:number
Defined in: core-interfaces.ts:2450
3D Perspecitve
- range: 0-120
Default
ts
30Inherited from
v3DRAngAx?
optionalv3DRAngAx?:boolean
Defined in: core-interfaces.ts:2458
Right Angle Axes
- Shows chart from first-person perspective
- Overrides
v3DPerspectivewhen true - PowerPoint: Chart Options > 3-D Rotation
Default
ts
falseInherited from
v3DRotX?
optionalv3DRotX?:number
Defined in: core-interfaces.ts:2465
X Rotation
- PowerPoint: Chart Options > 3-D Rotation
- range: 0-359.9
Default
ts
30Inherited from
v3DRotY?
optionalv3DRotY?:number
Defined in: core-interfaces.ts:2471
Y Rotation
- range: 0-359.9
Default
ts
30Inherited from
valAxes?
optionalvalAxes?:ChartPropsAxisVal[]
Defined in: core-interfaces.ts:2576
Multi-Chart prop: array of val axes
Inherited from
valAxisCrossBetween?
optionalvalAxisCrossBetween?:"between"|"midCat"
Defined in: core-interfaces.ts:2584
Controls where axis values are plotted relative to tick marks
'between'= values plotted between tick marks (default for bar/column/line)'midCat'= values plotted on tick marks (default for scatter/area)- PowerPoint: Format Axis > Axis Options > Axis crosses > On tick marks / Between tick marks
Inherited from
valAxisCrossesAt?
optionalvalAxisCrossesAt?:number|"autoZero"
Defined in: core-interfaces.ts:2577
Inherited from
valAxisDisplayUnit?
optionalvalAxisDisplayUnit?:"billions"|"hundredMillions"|"hundreds"|"hundredThousands"|"millions"|"tenMillions"|"tenThousands"|"thousands"|"trillions"
Defined in: core-interfaces.ts:2585
Inherited from
valAxisDisplayUnitLabel?
optionalvalAxisDisplayUnitLabel?:boolean
Defined in: core-interfaces.ts:2595
Inherited from
ChartOpts.valAxisDisplayUnitLabel
valAxisHidden?
optionalvalAxisHidden?:boolean
Defined in: core-interfaces.ts:2596
Inherited from
valAxisLabelColor?
optionalvalAxisLabelColor?:string
Defined in: core-interfaces.ts:2597
Inherited from
valAxisLabelFontBold?
optionalvalAxisLabelFontBold?:boolean
Defined in: core-interfaces.ts:2598
Inherited from
ChartOpts.valAxisLabelFontBold
valAxisLabelFontFace?
optionalvalAxisLabelFontFace?:string
Defined in: core-interfaces.ts:2599
Inherited from
ChartOpts.valAxisLabelFontFace
valAxisLabelFontItalic?
optionalvalAxisLabelFontItalic?:boolean
Defined in: core-interfaces.ts:2600
Inherited from
ChartOpts.valAxisLabelFontItalic
valAxisLabelFontSize?
optionalvalAxisLabelFontSize?:number
Defined in: core-interfaces.ts:2601
Inherited from
ChartOpts.valAxisLabelFontSize
valAxisLabelFormatCode?
optionalvalAxisLabelFormatCode?:string
Defined in: core-interfaces.ts:2602
Inherited from
ChartOpts.valAxisLabelFormatCode
valAxisLabelPos?
optionalvalAxisLabelPos?:"none"|"high"|"low"|"nextTo"
Defined in: core-interfaces.ts:2603
Inherited from
valAxisLabelRotate?
optionalvalAxisLabelRotate?:number
Defined in: core-interfaces.ts:2604
Inherited from
valAxisLineColor?
optionalvalAxisLineColor?:string
Defined in: core-interfaces.ts:2605
Inherited from
valAxisLineShow?
optionalvalAxisLineShow?:boolean
Defined in: core-interfaces.ts:2606
Inherited from
valAxisLineSize?
optionalvalAxisLineSize?:number
Defined in: core-interfaces.ts:2607
Inherited from
valAxisLineStyle?
optionalvalAxisLineStyle?:"dash"|"solid"|"dot"
Defined in: core-interfaces.ts:2608
Inherited from
valAxisLogScaleBase?
optionalvalAxisLogScaleBase?:number
Defined in: core-interfaces.ts:2613
PowerPoint: Format Axis > Axis Options > Logarithmic scale - Base
- range: 2-99
Inherited from
valAxisMajorTickMark?
optionalvalAxisMajorTickMark?:ChartAxisTickMark
Defined in: core-interfaces.ts:2614
Inherited from
ChartOpts.valAxisMajorTickMark
valAxisMajorUnit?
optionalvalAxisMajorUnit?:number
Defined in: core-interfaces.ts:2615
Inherited from
valAxisMaxVal?
optionalvalAxisMaxVal?:number
Defined in: core-interfaces.ts:2616
Inherited from
valAxisMinorTickMark?
optionalvalAxisMinorTickMark?:ChartAxisTickMark
Defined in: core-interfaces.ts:2617
Inherited from
ChartOpts.valAxisMinorTickMark
valAxisMinVal?
optionalvalAxisMinVal?:number
Defined in: core-interfaces.ts:2618
Inherited from
valAxisOrientation?
optionalvalAxisOrientation?:"minMax"|"maxMin"
Defined in: core-interfaces.ts:2619
Inherited from
valAxisTitle?
optionalvalAxisTitle?:string
Defined in: core-interfaces.ts:2620
Inherited from
valAxisTitleColor?
optionalvalAxisTitleColor?:string
Defined in: core-interfaces.ts:2621
Inherited from
valAxisTitleFontFace?
optionalvalAxisTitleFontFace?:string
Defined in: core-interfaces.ts:2622
Inherited from
ChartOpts.valAxisTitleFontFace
valAxisTitleFontSize?
optionalvalAxisTitleFontSize?:number
Defined in: core-interfaces.ts:2623
Inherited from
ChartOpts.valAxisTitleFontSize
valAxisTitleRotate?
optionalvalAxisTitleRotate?:number
Defined in: core-interfaces.ts:2624
Inherited from
valGridLine?
optionalvalGridLine?:OptsChartGridLine
Defined in: core-interfaces.ts:2625
Inherited from
valign?
optionalvalign?:VAlign
Defined in: core-interfaces.ts:765
vertical alignment
Default
ts
'top'Inherited from
valLabelFormatCode?
optionalvalLabelFormatCode?:string
Defined in: core-interfaces.ts:2633
Value label format code
- this also directs Data Table formatting
Examples
ts
'#%' // round percentts
'0.00%' // shows values as '0.00%'ts
'$0.00' // shows values as '$0.00'Inherited from
w?
optionalw?:Coord
Defined in: core-interfaces.ts:68
Width
- inches or percentage
Examples
ts
10.25 // width in inchests
'75%' // width as percentage of slide sizeInherited from
x?
optionalx?:Coord
Defined in: core-interfaces.ts:47
Horizontal position
- inches or percentage
Examples
ts
10.25 // position in inchests
'75%' // position as percentage of slide sizeInherited from
y?
optionaly?:Coord
Defined in: core-interfaces.ts:54
Vertical position
- inches or percentage
Examples
ts
10.25 // position in inchests
'75%' // position as percentage of slide size