clear_visual_styling
Remove border, shadows, and visual headers from Power BI visuals while keeping custom titles, overlays, and navigation intact. Flatten to a plain, non-premium look safely.
Instructions
FLATTEN visuals to a plain 'non-premium' look the SAFE way. Removes the decorative chrome (border, dropShadow, stylePreset, visualHeader/visualHeaderTooltip and plain opaque backgrounds) from each visual's vcObjects. PRESERVES deliberate formatting by default: a custom-text or explicit-show title (e.g. a custom heading, or a title hidden on an overlay chart) and a transparent (overlay) background are kept. NEVER touches a button's navigation action (visualLink), bookmark/page-navigation actions, or the data + conditional formatting (singleVisual.objects). actionButton visuals are skipped entirely. This replaces the buggy 'delete the whole vcObjects bucket' flatten that destroyed meaningful titles/overlays and broke nav buttons. pageName omitted = all pages; visualName omitted = all visuals on the page. Set removeTitles=true to also strip deliberate titles (the old aggressive behaviour). Returns visuals touched, decorative keys removed, and a count of action/visualLink keys PRESERVED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageName | No | page name or displayName (omit = all pages) | |
| visualName | No | visual name (omit = all visuals on the page) | |
| removeTitles | No | also remove deliberate custom/explicit titles (default false = keep them) | |
| reportSessionId | Yes | ||
| whiteBackground | No | also set the page background to solid #FFFFFF |