set_chart_legend
Configure chart legend position and visibility in Power BI Report Builder paginated reports. Supports multiple positions and toggling hidden state.
Instructions
Configure a chart legend: position (TopLeft / TopCenter / TopRight / LeftTop / LeftCenter / LeftBottom / RightTop / RightCenter / RightBottom / BottomLeft / BottomCenter / BottomRight) and visible (writes true|false). legend_name defaults to 'Default' (the only one the template emits). Returns {chart, legend, kind, changed: list[str]}; no-op short-circuit when nothing supplied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| visible | No | ||
| position | No | ||
| chart_name | Yes | ||
| legend_name | No | Default |