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
MatsSchrader
New Member

Is it possible to change the tooltip orientation?

I'm using the power bi tooltips and would like them to appear above my nodes.
When I set the coordinates to the topmost position of my node, the triangle part of the tooltip starts there but goes to the right or left. The tooltip box itself will then overlap with my node.

Is it possible to make the tooltip appear in a certain direction? e.g. from my coordinates the tooltip should be centered above them

Instead of this: 

MatsSchrader_0-1711726812906.png

I want something like this: 

MatsSchrader_1-1711726840128.png


This is the code for showing the tooltip:

const bRect: DOMRect = cellView.el.getBoundingClientRect();
tooltipService.show({
dataItems: dataItem,
identities: [],
coordinates: [bRect.left + bRect.width / 2, bRect.top],
isTouchEvent: false,
});
1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @MatsSchrader,

 

The main Power BI window currently manages the orientation of the tooltip relative to the supplied coordinates. The current API does not have the functionality to override this, so if you feel particularly strongly about it, you would need to request the feature from MS. This can either be done by creating an issue in the API repo or email them directly - pbicvsupport@microsoft.com

 

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)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @MatsSchrader,

 

The main Power BI window currently manages the orientation of the tooltip relative to the supplied coordinates. The current API does not have the functionality to override this, so if you feel particularly strongly about it, you would need to request the feature from MS. This can either be done by creating an issue in the API repo or email them directly - pbicvsupport@microsoft.com

 

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)




Nathaniel_C
Super User
Super User

Hi @MatsSchrader ,
You might look at this visual 

Nathaniel_C_0-1711926238578.png

or https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-visual-tooltips?tabs=desktop-new

or https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips?tabs=powerbi-desktop

for some good info.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.