Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / ChartPropsBase

Interface: ChartPropsBase

Defined in: src/types/chart.ts:215

Extended by

Properties

axisPos?

optional axisPos?: "r" | "b" | "t" | "l"

Defined in: src/types/chart.ts:219

Axis position


chartArea?

optional chartArea?: ChartAreaProps

Defined in: src/types/chart.ts:313

PowerPoint: Format Chart Area (Fill & Border/Line)


chartColors?

optional chartColors?: string[]

Defined in: src/types/chart.ts:220


chartColorsOpacity?

optional chartColorsOpacity?: number

Defined in: src/types/chart.ts:225

opacity (0 - 100)

Example

ts
50 // 50% opaque

dataBorder?

optional dataBorder?: BorderProps

Defined in: src/types/chart.ts:226


displayBlanksAs?

optional displayBlanksAs?: "zero" | "gap" | "span"

Defined in: src/types/chart.ts:227


invertedColors?

optional invertedColors?: string[]

Defined in: src/types/chart.ts:228


lang?

optional lang?: string

Defined in: src/types/chart.ts:229


layout?

optional layout?: PositionProps

Defined in: src/types/chart.ts:230


leaderLineColor?

optional leaderLineColor?: 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 lines

leaderLineSize?

optional leaderLineSize?: number

Defined in: src/types/chart.ts:261

Leader line width, in points (pie/doughnut data labels). Requires showLeaderLines: true.

Default

ts
0.75

Example

ts
1.5

plotArea?

optional plotArea?: ChartPropsFillLine

Defined in: src/types/chart.ts:317

PowerPoint: Format Plot Area (Fill & Border/Line)


seriesOptions?

optional seriesOptions?: 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?

optional shadow?: ShadowProps

Defined in: src/types/chart.ts:231


showBubbleSize?

optional showBubbleSize?: 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
false

showLabel?

optional showLabel?: 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 showValue to show the value label.

For the common "show the numeric value" case on standard plots, prefer showValue.

Default

ts
false

showLeaderLines?

optional showLeaderLines?: boolean

Defined in: src/types/chart.ts:249


showLegend?

optional showLegend?: boolean

Defined in: src/types/chart.ts:265

Default

ts
false

showPercent?

optional showPercent?: boolean

Defined in: src/types/chart.ts:269

Default

ts
false

showSerName?

optional showSerName?: boolean

Defined in: src/types/chart.ts:273

Default

ts
false

showTitle?

optional showTitle?: boolean

Defined in: src/types/chart.ts:277

Default

ts
false

showValue?

optional showValue?: boolean

Defined in: src/types/chart.ts:281

Default

ts
false

v3DPerspective?

optional v3DPerspective?: number

Defined in: src/types/chart.ts:287

3D Perspecitve

  • range: 0-120

Default

ts
30

v3DRAngAx?

optional v3DRAngAx?: boolean

Defined in: src/types/chart.ts:295

Right Angle Axes

  • Shows chart from first-person perspective
  • Overrides v3DPerspective when true
  • PowerPoint: Chart Options > 3-D Rotation

Default

ts
false

v3DRotX?

optional v3DRotX?: number

Defined in: src/types/chart.ts:302

X Rotation

  • PowerPoint: Chart Options > 3-D Rotation
  • range: 0-359.9

Default

ts
30

v3DRotY?

optional v3DRotY?: number

Defined in: src/types/chart.ts:308

Y Rotation

  • range: 0-359.9

Default

ts
30