Appearance
@shbernal/ts-pptx / index / ChartPropsBase
Interface: ChartPropsBase
Defined in: src/types/chart.ts:215
Extended by
Properties
axisPos?
optionalaxisPos?:"r"|"b"|"t"|"l"
Defined in: src/types/chart.ts:219
Axis position
chartArea?
optionalchartArea?:ChartAreaProps
Defined in: src/types/chart.ts:313
PowerPoint: Format Chart Area (Fill & Border/Line)
chartColors?
optionalchartColors?:string[]
Defined in: src/types/chart.ts:220
chartColorsOpacity?
optionalchartColorsOpacity?:number
Defined in: src/types/chart.ts:225
opacity (0 - 100)
Example
ts
50 // 50% opaquedataBorder?
optionaldataBorder?:BorderProps
Defined in: src/types/chart.ts:226
displayBlanksAs?
optionaldisplayBlanksAs?:"zero"|"gap"|"span"
Defined in: src/types/chart.ts:227
invertedColors?
optionalinvertedColors?:string[]
Defined in: src/types/chart.ts:228
lang?
optionallang?:string
Defined in: src/types/chart.ts:229
layout?
optionallayout?:PositionProps
Defined in: src/types/chart.ts:230
leaderLineColor?
optionalleaderLineColor?:string
Defined in: src/types/chart.ts:255
Leader line color (pie/doughnut data labels). Requires showLeaderLines: true. When omitted, PowerPoint applies its automatic leader-line color.
Example
ts
'FF0000' // red leader linesleaderLineSize?
optionalleaderLineSize?:number
Defined in: src/types/chart.ts:261
Leader line width, in points (pie/doughnut data labels). Requires showLeaderLines: true.
Default
ts
0.75Example
ts
1.5plotArea?
optionalplotArea?:ChartPropsFillLine
Defined in: src/types/chart.ts:317
PowerPoint: Format Plot Area (Fill & Border/Line)
seriesOptions?
optionalseriesOptions?:ChartSeriesOpts[]
Defined in: src/types/chart.ts:324
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.
shadow?
optionalshadow?:ShadowProps
Defined in: src/types/chart.ts:231
showBubbleSize?
optionalshowBubbleSize?:boolean
Defined in: src/types/chart.ts:237
Show each bubble's size value as a data label (bubble / bubble3D charts only). Has no effect on other chart types.
Default
ts
falseshowLabel?
optionalshowLabel?:boolean
Defined in: src/types/chart.ts:248
Enable data labels, with a meaning that is overloaded per plot type — it is not a plain duplicate of ChartPropsBase.showValue:
- pie / doughnut: shows the category name (
c:showCatName); - scatter: shows both the value and the category name;
- chartEx (waterfall/funnel/…): OR-combined with
showValueto show the value label.
For the common "show the numeric value" case on standard plots, prefer showValue.
Default
ts
falseshowLeaderLines?
optionalshowLeaderLines?:boolean
Defined in: src/types/chart.ts:249
showLegend?
optionalshowLegend?:boolean
Defined in: src/types/chart.ts:265
Default
ts
falseshowPercent?
optionalshowPercent?:boolean
Defined in: src/types/chart.ts:269
Default
ts
falseshowSerName?
optionalshowSerName?:boolean
Defined in: src/types/chart.ts:273
Default
ts
falseshowTitle?
optionalshowTitle?:boolean
Defined in: src/types/chart.ts:277
Default
ts
falseshowValue?
optionalshowValue?:boolean
Defined in: src/types/chart.ts:281
Default
ts
falsev3DPerspective?
optionalv3DPerspective?:number
Defined in: src/types/chart.ts:287
3D Perspecitve
- range: 0-120
Default
ts
30v3DRAngAx?
optionalv3DRAngAx?:boolean
Defined in: src/types/chart.ts:295
Right Angle Axes
- Shows chart from first-person perspective
- Overrides
v3DPerspectivewhen true - PowerPoint: Chart Options > 3-D Rotation
Default
ts
falsev3DRotX?
optionalv3DRotX?:number
Defined in: src/types/chart.ts:302
X Rotation
- PowerPoint: Chart Options > 3-D Rotation
- range: 0-359.9
Default
ts
30v3DRotY?
optionalv3DRotY?:number
Defined in: src/types/chart.ts:308
Y Rotation
- range: 0-359.9
Default
ts
30