<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set default Padding = 0 and turn off Background in Visual Format (Power BI)? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4763313#M62223</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jul 2025 08:50:41 GMT</pubDate>
    <dc:creator>v-tejrama</dc:creator>
    <dc:date>2025-07-15T08:50:41Z</dc:date>
    <item>
      <title>How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4755896#M62141</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Specifically, I want to:&lt;/P&gt;&lt;P&gt;Set the default Padding (under &lt;STRONG&gt;format &amp;gt; general &amp;gt; padding&lt;/STRONG&gt;) to 0 px on all sides.&lt;/P&gt;&lt;P&gt;Set the default Background (under &lt;STRONG&gt;format &amp;gt; effects &amp;gt; background&lt;/STRONG&gt;) to Off by default.&lt;/P&gt;&lt;P&gt;I’m looking for a way to override the default format panel values when the visual is first inserted.&lt;/P&gt;&lt;P&gt;Is there a way to control these defaults in a custom visual?&lt;/P&gt;&lt;P&gt;Any guidance or example on how to set these initial values (via capabilities.json, visual.ts, or other metadata) would be greatly appreciated.&lt;/P&gt;&lt;P&gt;I've attached screenshots of the settings I'm trying to control.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidAnthony_0-1751942307821.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281543i851BE61FDCA817F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidAnthony_0-1751942307821.png" alt="DavidAnthony_0-1751942307821.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidAnthony_1-1751942314798.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281544i84FCEC35444AC23F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidAnthony_1-1751942314798.png" alt="DavidAnthony_1-1751942314798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 02:38:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4755896#M62141</guid>
      <dc:creator>DavidAnthony</dc:creator>
      <dc:date>2025-07-08T02:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4756339#M62149</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp; ,&lt;BR /&gt;Thanks for reaching out to the Microsoft Fabric Community forum.&lt;BR /&gt;&lt;BR /&gt;It seems you are trying to&amp;nbsp;build a custom Power BI visual and wants to control the default formatting settings that appear in the visual’s format pane when it's first inserted into a report. Specifically, you are trying to set all padding values to 0 px&amp;nbsp;and turn off the background by default.&lt;/P&gt;
&lt;P&gt;You are looking for a way to define these initial format defaults&amp;nbsp;either through capabilities.json, visual.ts, or other config which is the right way, so the visual loads with their preferred formatting without the user needing to change it manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to achieve this you can go through the below documents:&lt;BR /&gt;&lt;A title="https://learn.microsoft.com/en-us/power-bi/developer/visuals/format-pane-general" href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/format-pane-general" target="_blank" rel="noreferrer noopener"&gt;About format pane and formatting model in Power BI custom visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities" href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities" target="_blank" rel="noreferrer noopener"&gt;Capabilities and properties of Power BI visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options" href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options" target="_blank" rel="noreferrer noopener"&gt;Add formatting options to a Power BI custom visual - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://learn.microsoft.com/en-us/power-bi/developer/visuals/format-pane-example" href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/format-pane-example" target="_blank" rel="noreferrer noopener"&gt;Customize the format pane in Power BI custom visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 10:12:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4756339#M62149</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-07-08T10:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4757065#M62158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main window owns the common visual container properties (everything in the 'General' menu) and cannot be accessed by the visual (either reading or writing). Custom visuals only have access to two properties under the general object: &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/filter-api" target="_self"&gt;filter&lt;/A&gt; and &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/dynamic-format" target="_self"&gt;formatString&lt;/A&gt; (which have specific use cases).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to override these is to create a report JSON theme with the appropriate defaults.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want these available to custom visuals, I suggest &lt;A href="https://github.com/microsoft/powerbi-visuals-api/issues" target="_self"&gt;making a feature request&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 21:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4757065#M62158</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2025-07-08T21:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4760558#M62201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;SPAN class=""&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;!-- EndFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 04:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4760558#M62201</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-07-12T04:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4763313#M62223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 08:50:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4763313#M62223</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-07-15T08:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default Padding = 0 and turn off Background in Visual Format (Power BI)?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4768232#M62267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1239451"&gt;@DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just checking in have you been able to resolve this issue? If so, it would be greatly appreciated if you could mark the most helpful reply accordingly. This helps other community members quickly find relevant solutions.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 10:04:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-default-Padding-0-and-turn-off-Background-in-Visual/m-p/4768232#M62267</guid>
      <dc:creator>v-tejrama</dc:creator>
      <dc:date>2025-07-18T10:04:00Z</dc:date>
    </item>
  </channel>
</rss>

