Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / ChartAreaProps

Interface: ChartAreaProps

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

Extends

Properties

border?

optional border?: BorderProps

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

PowerPoint: Format Chart Area/Plot > Border ["Line"]

Example

ts
border: {color: 'FF0000', width: 1} // hex RGB color, 1 pt line

Inherited from

ChartPropsFillLine.border


fill?

optional fill?: ShapeFillProps

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

PowerPoint: Format Chart Area/Plot Area > Fill

Omitting fill leaves the area transparent (<a:noFill/>), as does a fill that states neither a color nor a typetransparency alone is not a fill, since there is no colour for the alpha to apply to.

type: 'image' is not supported here and falls back to no fill with a warning: a blip fill needs a media relationship on the chart part, which nothing registers.

Examples

ts
fill: {color: '696969'} // hex RGB color value
ts
fill: {color: SchemeColor.background2} // Theme color value
ts
fill: {color: '696969', transparency: 50} // 50% transparent grey
ts
fill: {type: 'gradient', gradient: {kind: 'linear', angle: 90, stops: [{position: 0, color: '0088CC'}, {position: 100, color: 'FFFFFF'}]}}
ts
fill: {type: 'inherit'} // no fill child at all -- take the chart style's fill

Inherited from

ChartPropsFillLine.fill


roundedCorners?

optional roundedCorners?: boolean

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

Whether the chart area has rounded corners

  • only applies when either fill or border is used

Default

ts
true