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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Drag and drop react visuals to powerbi embedded report in React Application

Created the powerbi visuals in React which contains the config of powerbi Visuals. I also embedded the blank powerbi report in React application using
powerBi-client package.

 

Requirement:

 

-> want to drag and drop the visuals from react component to different react compoment which renders the powerbi report and after dragging and dropping
that visual should show the real chart either it is bar, line chart etc.

 

->  I should add multiple visual into the report.

 

-> want to enlarge and reduce the size of visual in the powerbi report component.

 

-> want to change the position of the visuals by dragging in the powerbi report component.

 

-> want to delete the visuals if not required in the report

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

#1, I don't' think it is possible to direct drag-drop visual between different components.
It is possible to use javascript API to get the target visual id, but I haven't found the feature to direct interaction between different embedded report contents. (the visual dataset is bound to the access token, you can't add undeclare dataset contents in the embedded report)

Power BI embedded analytics Client APIs | Microsoft Docs

#2,3,4, I'd like to suggest you turn on the edit mode, then you can simply change the visual layouts and edit on the embedded iframe.

Create, edit, and save an embedded report | Microsoft Docs

BTW, here is the online sandbox which provides the code snap for embedding features, you can take a look at the following link:

Power BI Playground

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

#1, I don't' think it is possible to direct drag-drop visual between different components.
It is possible to use javascript API to get the target visual id, but I haven't found the feature to direct interaction between different embedded report contents. (the visual dataset is bound to the access token, you can't add undeclare dataset contents in the embedded report)

Power BI embedded analytics Client APIs | Microsoft Docs

#2,3,4, I'd like to suggest you turn on the edit mode, then you can simply change the visual layouts and edit on the embedded iframe.

Create, edit, and save an embedded report | Microsoft Docs

BTW, here is the online sandbox which provides the code snap for embedding features, you can take a look at the following link:

Power BI Playground

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.