Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / ChartPropsLegend

Interface: ChartPropsLegend

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

Extended by

Properties

legendColor?

optional legendColor?: string

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


legendFontFace?

optional legendFontFace?: string

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


legendFontSize?

optional legendFontSize?: number

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


legendLayout?

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

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

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