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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
yf569
Helper II
Helper II

R visual and custom visual to interact with other visuals

I have used both R visual and custom visual. But they are not interactive with other visuals on the canvas. For example, when I click on a dot on my custom visual, the other normal visuals on the canvas are not filtered. Is there anything I am missing?

1 REPLY 1
dm-p
Super User
Super User

Hi @yf569,

For conventional custom visuals (written using TypeScript), interactivity doesn't "just work". This has to be coded manually using the selection API or similar, as you need to define which elements represent data points, and what actual values in your data view they represent so that Power BI knows what to do with them. You also need to code in the correct visual effects for any elements in your visual that are selected vs. those that are not.

MS only provide APIs to support these operations for TypeScript visuals, and not for R. So, unfortunately if you want your R visual to be interactive with others, you'll need to develop a TypeScript version. A lot of the limitations with using the inbuilt R visual still exist with R custom visuals coded using the SDK.

It may be possible to hook into an R visual if it uses HTMLwidgets, but I don't think that this would be supported; anything would still need to be done with the TypeScript APIs and possibly some other libraries to process and bind the generated HTML after it comes back - R visuals still use the regular TypeScript SDK and send the R code off for delegation to either a local R interpreter (if using Desktop) or a MS-hosted one (if using the Service).

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)




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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