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
Baskar
Resident Rockstar
Resident Rockstar

Change R visual to Custom visual with Tooltip

Thanks Advanced !!!

 

Hi,

 

I have tried to create R visual in power BI and i successfully complete that visual as well. 

Now the challange is i have change the R visual as Custom visual. because i need tooltip on my visual.

Am totally blank on this, how can i acheive this.

 

Your help is priceless.Man Tongue

6 REPLIES 6
v-viig
Community Champion
Community Champion

Hello @Baskar

 

We'll include our R-script developer to assist with this feature.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Baskar
Resident Rockstar
Resident Rockstar

@v-viig let me know when i will get touch with R-Developer.

v-viig
Community Champion
Community Champion

Hello @Baskar

 

Our developer will investigate the posibility to use tooltips with R.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

v-viig
Community Champion
Community Champion

To use tooltips API, the developer will need to:

  1. Transition from standard R-script visual to HTML R Custom visual, that may be very easy or very complicated, depending on packages used.
  2. Add to every relevant entity in the R HTML widget an “on-hover” behavior invoking tool-tips API (this can and should be done using plotly’s commands in the R script)
  3. Connect the specific details to be shown in the tooltip to the call in “b.” – this may be difficult for certain visualizations.

 

Pros:

  1. Same look and feel as other PBI visuals
  2. Can display tooltips outside of visual’s iframe boundaries.

 

Cons:

  1. Requires some TS coding
  2. Depending on specific implementation, may be difficult to implement.

 

To use plotly’s built-in tool tips, the developer will still need step “1.” above (static images won’t generate tooltips, he must generate a functioning HTML widget…)

 

Pros:

  1. Only R coding, (aside from transition to R HTML widget)
  2. Data automatically available for tooltip.

 

Cons:

  1. Tooltips limited to visual’s plot R area.
  2. Look and feel inconsistent with PBI’s

 

You might also take a look at https://github.com/Microsoft/powerbi-visuals-funnel as an example.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Anonymous
Not applicable

I am facing the same problem. Did you find a way to make tool tip work in R visual ?

v-viig
Community Champion
Community Champion

Have you tried the solution posted above?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

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.

Top Solution Authors