Appearance
Interface: ChartPropsLegend ​
Extended by ​
Properties ​
legendColor? ​
optionallegendColor?:string
legendFontFace? ​
optionallegendFontFace?:string
legendFontSize? ​
optionallegendFontSize?:number
legendLayout? ​
optionallegendLayout?:PositionProps
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.
Held to the plot area's ChartPropsBase.layout rule: x and y from 0 to 1, w and h above 0 and at most 1. A value outside that, or one that is not a number, warns and is dropped, so that axis stays automatic. ST_Double itself is unbounded; whether PowerPoint places a legend reaching past the chart edge has not been checked, so the narrower rule stands.
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"
Where the legend sits (ST_LegendPos).
Default ​
ts
'r'