Showing results for 
Search instead for 
Did you mean: 
akj2784 Member

How to remove extra padding in the Custom R visual in Power BI

Hi All,


I have created a scatter plot using R and Custom visual method by pbiviz.

Somehow Power BI adds extra padding throughout. Is there any way to remove that ?


I did not find the option to remove that. 





Community Support Team
Community Support Team

Re: How to remove extra padding in the Custom R visual in Power BI

HI @akj2784,


Can you please provide more detail content to description your scenario? I'm not so clear how do you design visual graph.

Have you turn on any analysis lines on visual? if this is a case, I'd like to suggest you turn off it first.



Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

For learning resources/Release notes, please visit: | |
njimenez Visitor

Re: How to remove extra padding in the Custom R visual in Power BI

I have the same issue, i'm using ggplotly to create it, i can change the padding on rstudio (viewer), and using htmlwidgets::savewidget works too, but when i create the custom visual, it still the padding : 40 px on style, i'm creating the custom visual using this blog.



Helpful resources

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 6 members 1,848 guests
Please welcome our newest community members: