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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.