Forum Discussion
Change R visual to Custom visual with Tooltip
v-viig let me know when i will get touch with R-Developer.
Hello Anonymous
Our developer will investigate the posibility to use tooltips with R.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- v-viig8 years ago
Community Champion
To use tooltips API, the developer will need to:
- Transition from standard R-script visual to HTML R Custom visual, that may be very easy or very complicated, depending on packages used.
- 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)
- Connect the specific details to be shown in the tooltip to the call in “b.” – this may be difficult for certain visualizations.
Pros:
- Same look and feel as other PBI visuals
- Can display tooltips outside of visual’s iframe boundaries.
Cons:
- Requires some TS coding
- 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:
- Only R coding, (aside from transition to R HTML widget)
- Data automatically available for tooltip.
Cons:
- Tooltips limited to visual’s plot R area.
- 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
- Anonymous8 years agoNot applicable
I am facing the same problem. Did you find a way to make tool tip work in R visual ?
- v-viig8 years ago
Community Champion
Have you tried the solution posted above?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals