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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors