Appearance
@shbernal/pptxgenjs / index / IChartPropsLegend
Interface: IChartPropsLegend
Defined in: core-interfaces.ts:2635
Extended by
Properties
legendColor?
optionallegendColor?:string
Defined in: core-interfaces.ts:2636
legendFontFace?
optionallegendFontFace?:string
Defined in: core-interfaces.ts:2637
legendFontSize?
optionallegendFontSize?:number
Defined in: core-interfaces.ts:2638
legendLayout?
optionallegendLayout?:PositionProps
Defined in: core-interfaces.ts:2652
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"|"l"|"t"
Defined in: core-interfaces.ts:2653