cancel
Showing results for 
Search instead for 
Did you mean: 
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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors