Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / IChartPropsLegend

Interface: IChartPropsLegend

Defined in: core-interfaces.ts:2635

Extended by

Properties

legendColor?

optional legendColor?: string

Defined in: core-interfaces.ts:2636


legendFontFace?

optional legendFontFace?: string

Defined in: core-interfaces.ts:2637


legendFontSize?

optional legendFontSize?: number

Defined in: core-interfaces.ts:2638


legendLayout?

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

optional legendPos?: "r" | "b" | "tr" | "l" | "t"

Defined in: core-interfaces.ts:2653