Forum Discussion

DavidAnthony's avatar
DavidAnthony
Helper II
1 year ago
Solved

How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?

Hi everyone,

I'm currently developing a custom visual for Power BI, and I want to configure the default settings for the visual when it's added to a report.

Specifically, I want to:

Set the default Padding (under format > general > padding) to 0 px on all sides.

Set the default Background (under format > effects > background) to Off by default.

I’m looking for a way to override the default format panel values when the visual is first inserted.

Is there a way to control these defaults in a custom visual?

Any guidance or example on how to set these initial values (via capabilities.json, visual.ts, or other metadata) would be greatly appreciated.

I've attached screenshots of the settings I'm trying to control.

Thanks in advance!

 



5 Replies