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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Power BI Embedded fittowidth

Hi,

 

I've got a web app which I'm embedding a Power BI Dashboard in from a group workspace.  I'm trying to get the dashboard to "fit to width" (just like when going full screen in the service then pressing the fit to width button).  I've added the pageView: "fittowidth" in the embed code in the web app and it works in IE but I cannot get it to work in Chrome, Chrome just shows a horizontal scroll bar.  I've tried setting the CSS for the dashboard container width attribute to be between 95% and 100% and also an absolute value (eg 500px) and it just doesn't work in Chrome, I always get the scrollbars as Chrome is displaying the dashboard as it's actual size.  I'd like the dashboard to "fit to width" on users desktop pcs, laptops etc but if they're not using IE it doesn't work.

 

Has anyone had this issue before and if so were they able to solve it?

 

Thanks

1 REPLY 1
Eric_Zhang
Employee
Employee


@Anonymous wrote:

Hi,

 

I've got a web app which I'm embedding a Power BI Dashboard in from a group workspace.  I'm trying to get the dashboard to "fit to width" (just like when going full screen in the service then pressing the fit to width button).  I've added the pageView: "fittowidth" in the embed code in the web app and it works in IE but I cannot get it to work in Chrome, Chrome just shows a horizontal scroll bar.  I've tried setting the CSS for the dashboard container width attribute to be between 95% and 100% and also an absolute value (eg 500px) and it just doesn't work in Chrome, I always get the scrollbars as Chrome is displaying the dashboard as it's actual size.  I'd like the dashboard to "fit to width" on users desktop pcs, laptops etc but if they're not using IE it doesn't work.

 

Has anyone had this issue before and if so were they able to solve it?

 

Thanks


@Anonymous

I don't see any horizontal scroll bar when viewing an embedded dashboard in Chrome. The dashboard is always auto fitting the width when changing the Chrrome window size. Could you share more details of your dashboard so that I can reproduce the same issue?

Capture.PNGCapture2.PNG

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.