Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
pfergy
Regular Visitor

Image url in a force direct graph

Hello-

 

I am trying to visualize the relathionship between users and specific keywords by using a force direct graph.  Instead of the node displaying the user name, I'd like to show a user picture.  I tried using the url image box but can't seem to get it to work. 

 

Here is my data:

 

User          Keyword

Paul          Disruptive

Jake          Disruptive

Paul          Transformation

 

I tried using the string for an image in my documents as follows: C:\Users\pfergy\Pictures\Employee Pics\pfergy

I also used the image extension of '.png'

 

Am I missing something?  Sorry - I'm fairly new to this tool.  Thanks for the help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi pfergy,

 

Based on my test, I found that the “image url” doesn’t support the local path, you need to use “http image folder path”.

 

The force direct visual display image follow below rules:

 

Full url of image = “Image url” + “Source type”/”Target type” + “Image extension”.

e.g.

https://raw.githubusercontent.com/Microsoft/PowerBI-visuals-core/resources/images/reports/ForceGraph...Home.PNG

https://raw.githubusercontent.com/Microsoft/PowerBI-visuals-core/resources/images/reports/ForceGraph...Shared.PNG

 

Comment:

“Image url” :  the image folder’s path(not support the local path)

“Image extension”: the suffix of the image source.(.png , .jpg)

“Default image”:  one of available values in “Source type”/”Target type” fields.

 

If you want to know more detail about this visual, you can download the sample to test:

https://visuals.azureedge.net/powerbi-visuals/ForceGraph1449359463895/sample-report/ForceGraph.pbix

 

Regards,

Xiaoxin Sheng

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi pfergy,

 

Based on my test, I found that the “image url” doesn’t support the local path, you need to use “http image folder path”.

 

The force direct visual display image follow below rules:

 

Full url of image = “Image url” + “Source type”/”Target type” + “Image extension”.

e.g.

https://raw.githubusercontent.com/Microsoft/PowerBI-visuals-core/resources/images/reports/ForceGraph...Home.PNG

https://raw.githubusercontent.com/Microsoft/PowerBI-visuals-core/resources/images/reports/ForceGraph...Shared.PNG

 

Comment:

“Image url” :  the image folder’s path(not support the local path)

“Image extension”: the suffix of the image source.(.png , .jpg)

“Default image”:  one of available values in “Source type”/”Target type” fields.

 

If you want to know more detail about this visual, you can download the sample to test:

https://visuals.azureedge.net/powerbi-visuals/ForceGraph1449359463895/sample-report/ForceGraph.pbix

 

Regards,

Xiaoxin Sheng

 

ankitpatira
Community Champion
Community Champion

@pfergy Basically you need to supply image url as in below image. Try this url in Image URL section https://raw.githubusercontent.com/Microsoft/PowerBI-visuals-core/resources/images/reports/ForceGraph...

 

Capture.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.