Appearance
@shbernal/ts-pptx / index / ChartAreaProps
Interface: ChartAreaProps
Defined in: src/types/chart.ts:207
Extends
Properties
border?
optionalborder?: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 lineInherited from
fill?
optionalfill?: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 type — transparency 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 valuets
fill: {color: SchemeColor.background2} // Theme color valuets
fill: {color: '696969', transparency: 50} // 50% transparent greyts
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 fillInherited from
roundedCorners?
optionalroundedCorners?:boolean
Defined in: src/types/chart.ts:213
Whether the chart area has rounded corners
- only applies when either
fillorborderis used
Default
ts
true