Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
Hi,
That's a good idea.
I will try this out.
Thank you !
Best regards
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!
Hi @n0gare,
Can you clearly describe what you are trying to achieve ?
Let's assume that you have a stacked bar chart for Product Sales as per the image below. What do you want the chart to do ?
Hi djnww,
Let's assume chairs, coffee and books are our products, that we visualize.
So by the look at the visual the user gets a rough overview about the products. but to get further, more specific information, the user can open a contextmenu (with a right click on the object) with links/url to the web.
The link/url for each product would be provided form the (Excel) table, that is used to create the visualization.
As I was looking for help, I found some examples of how I want it to look like. But the approach that was used there is not working.
To add a context menu like in the image below, would be great.
Best regards!
Hey Sam,
I tried to add a ContextMenu for quite some time and the only thing I was able to do is to add the basic html contextMenu. The funny thing is that it only worked in a web browser.
Well anyway thank you for your suggestions, I am currentyl thinking about my next step.
Best reagards
n0gare
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |