Forum Discussion
How to add a Context menu
Hello guys,
I am looking for a way to add a context menu to my visual. Currently my visuals display a graph with nodes and edges. My visual is based on the Force-Directed Graph.
I want a context menu to show up after the user "right clicks" on a node, in that context menu the user is able to select some other functions.
Let's say my current graph represents a group of animals, so when "right clicking" on an elephant-node for example, a context menu shows up in that the user can enter the wikipedia site of an elephant to get more information, or some other function.
I thought to change the tooltip, but maybe there is a better way to do it. And I am not sure if the user is able to interact with the tooltip.
I hope you understand what my goal is.
Best regards!
7 Replies
- djnwwImpactful IndividualHi. At this point in time, the only solution I can think off is to have a separate table that will display your extra content (ie. URL) when a node is selected. FYI, I am assuming that clicking on a node will act as a filter for other visual charts on the page.
Dan- n0gareFrequent Visitor
Hi,
That's a good idea.
I will try this out.
Thank you !
Best regards
- n0gareFrequent Visitor
Hey,
Unfortunately this soulution is not working the way I wanted.
Does anyone know if it is even possible to add contextmenus into a power bi visual?
I worked with some tutorials that explain contextmenus for regular javascript, but none of them is working.
I hope you guys can help me .
Best regards!