set_visual_property
Set any Power BI visual formatting property via formatting ids (e.g., labels/show). Supports text, number, bool, color, or raw values for report objects and containers.
Instructions
Set ANY visual formatting property (the universal escape hatch). objectName/propertyName are Power BI formatting ids e.g. labels/show, legend/position, categoryAxis/showAxisTitle, valueAxis/start, dataPoint/fill. kind = text|number|bool|color|raw. target = objects (data formatting) or vcObjects (container: title, background, border).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | text|number|bool|color|raw | text |
| value | Yes | the value, e.g. true, Top, 12, #16365C | |
| target | No | objects|vcObjects | objects |
| pageName | Yes | ||
| objectName | Yes | formatting object id, e.g. labels, legend, categoryAxis, dataPoint, title | |
| visualName | Yes | ||
| propertyName | Yes | property id, e.g. show, position, fontSize, color, labelDisplayUnits | |
| reportSessionId | Yes |