set_visual_format
Set any visual formatting in Power BI reports using flexible JSON, merging new settings with existing ones to preserve untouched properties.
Instructions
Set ANY formatting on a visual (TOTAL customizability) - the universal styling engine. formatJson e.g. { "vcObjects": { "title": {"show":true,"text":"My Title"}, "background": {"show":true,"color":"#FFFFFF","transparency":100} }, "objects": { "legend": {"show":false} } }. Each property is encoded by kind (show->bool, text->text, transparency/fontSize->number, color/fontColor->colour, alignment/position->enum; otherwise inferred: boolean->bool, number->number, #RRGGBB->colour, else text) and MERGED in - untouched objects/properties and any selector are preserved. Returns the objects/properties changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| strict | No | when true, REJECT (do not apply) if validation finds unknown cards/properties or type mismatches; default false (apply + warn) | |
| visual | Yes | visual name or displayName | |
| formatJson | Yes | JSON: { vcObjects:{obj:{prop:value}}, objects:{obj:{prop:value}} } | |
| reportSessionId | Yes |