Appearance
@shbernal/ts-pptx / index / ChartPropsLegend
Interface: ChartPropsLegend
Defined in: src/types/chart.ts:770
Extended by
Properties
legendColor?
optionallegendColor?:string
Defined in: src/types/chart.ts:771
legendFontFace?
optionallegendFontFace?:string
Defined in: src/types/chart.ts:772
legendFontSize?
optionallegendFontSize?:number
Defined in: src/types/chart.ts:773
legendLayout?
optionallegendLayout?:PositionProps
Defined in: src/types/chart.ts:787
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 }legendPos?
optionallegendPos?:"r"|"b"|"tr"|"t"|"l"
Defined in: src/types/chart.ts:788