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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.