Format Visual
pbir_format_visualFormat visual properties by setting categories like title, background, and border, with auto-routing to container or visual objects. Override target to force specific placement.
Instructions
Format visual properties. Auto-routes title/background/border/padding/dropShadow/visualHeader to container, others to visual; override with target='visual'|'container'. Call pbir_lookup_theme_property for valid category/property names per visualType. Gotchas: slicer uses textSize, not fontSize (items/header); waterfall uses sentimentColors, not dataPoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page ID. Auto-resolved when only one page exists. | |
| target | No | 'auto' (default) routes container categories (title/background/border/padding/dropShadow/visualHeader) to visualContainerObjects and everything else to objects. Use 'visual' or 'container' to force. | auto |
| visualId | Yes | The visual ID | |
| formatting | Yes | Array of formatting categories and their properties to set |