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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Moatez
Regular Visitor

Overlay a custom visual over a report or make it transparent

Hello everyone ,

 

I want to know if its possible to make a custom visual that can be overlayed over a report or make the custom visual transparent .

 

My current situation is using a date picker , when the date picker opens up i want it to overlay over the report itself.

 

Here is a screenshot of the situation 🙂 

Moatez_0-1651606935193.png

 

Thanks!

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Moatez,

The background setting (which affects the entire developer visual container rather than the part of the DOM you have control over) does allow you to specify transparency, which will affect the entire developer visual above the iframe. However, this may still not achieve what you're after, as Power BI usually enforces z-order for visuals and you may well cause issues with people being able to use interactivity features of the visuals 'underneath'.

The officially supported way (again due to the iframe sandbox in-place) is to use the dialog box API for any content that you wish to overflow the boundares of a visual.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @Moatez,

The background setting (which affects the entire developer visual container rather than the part of the DOM you have control over) does allow you to specify transparency, which will affect the entire developer visual above the iframe. However, this may still not achieve what you're after, as Power BI usually enforces z-order for visuals and you may well cause issues with people being able to use interactivity features of the visuals 'underneath'.

The officially supported way (again due to the iframe sandbox in-place) is to use the dialog box API for any content that you wish to overflow the boundares of a visual.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Moatez
Regular Visitor

Hi @dm-p thank you very much for your answer ^^

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors