The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 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?