Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
akj2784
Post Partisan
Post Partisan

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. 

Chart.png

 

 

 

2 REPLIES 2
Anonymous
Not applicable

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.

 

https://microsoft.github.io/PowerBI-visuals/tutorials/building-r-powered-custom-visual/creating-r-po...

 

regards

Anonymous
Not applicable

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.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.