Forum Discussion
Add Text Tooltip to native Tooltip for Line Chart
I just need a text tooltip (column named On/Off) for informational purposes only so I'm not expecting an extra line series on my chart. I tried a report page tooltip, but it didn't display this in a simple way. Here's a screenshot of my data. Is there a DAX measure I could use to get the format right or another way to format the column to get it to display? Currently, it appears in the tooltip field, but it doesn't display on my chart when I mouse over it.
- Anonymous4 years ago
Hi lbudack ,
You can consider adding an On/Off measure as mentioned above, or you can use the Tooltip utils.
This article will help you to install, import, and use tooltip utils. This util useful for any tooltip customization in Power BI visuals.
This package you installed contains provide you the way to create TooltipServiceWrapper and methods to help handle tooltip actions. It uses tooltip interfaces - ITooltipServiceWrapper, TooltipEventArgs, TooltipEnabledDataPoint.
Also it has specific methods (touch events handlers) related to mobile development: touchEndEventName, touchStartEventName, usePointerEvents.
TooltipServiceWrapper provides the simplest way in order to manipulate tooltips.
Hope it helps,
Community Support Team _ CaitlynIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- amitchandakSuper User
lbudack , I tried the same on July 2021 and it it working and showing tooltip .
Try adding one more column and check.
Also , which version of power bi you are on?
- lbudackAdvocate III
amitchandak - Thanks for your prompt reply!
I tried rebuilding the chart, and when I put the On/Off column in the field wells first, it seemed to work, but then it wouldn't let me add the Attribute column as the legend. I think I may just be limited to some sort of workaround because of built-in limitations within the line chart tooltips.
According to Microsoft's documentation, it sounds like the formatting/summarization is the reason for this: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips#limitations-and-considerations
I'm on Power BI 2.97.861.0. (I just happened to download the latest version this morning.)
- PaulDBrownCommunity Champion
Perhaps adding a measure to the tooltips bucket?
On/Off = SELECTEDVALUE (Table[On/Off])
- AnonymousNot applicable
Hi lbudack ,
You can consider adding an On/Off measure as mentioned above, or you can use the Tooltip utils.
This article will help you to install, import, and use tooltip utils. This util useful for any tooltip customization in Power BI visuals.
This package you installed contains provide you the way to create TooltipServiceWrapper and methods to help handle tooltip actions. It uses tooltip interfaces - ITooltipServiceWrapper, TooltipEventArgs, TooltipEnabledDataPoint.
Also it has specific methods (touch events handlers) related to mobile development: touchEndEventName, touchStartEventName, usePointerEvents.
TooltipServiceWrapper provides the simplest way in order to manipulate tooltips.
Hope it helps,
Community Support Team _ CaitlynIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.