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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors