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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Color logic of Force-Directed Graph?

Hi, I'm enjoying using the Force-Directed Graph viz, but in order to use the results with other audiences, I need to match the colors of nodes and paths with a specific color palette. I already have the custom theme and use Link Type attribute to set the color. However, I can't seem to figure out how PBI is assigning colors based on Link Type. Ideally, the custom viz would allow more control over setting colors based on specific values (like other vizs do) but I'd settle for just understanding how it parses the data and decides which color to assign from the active theme. My thinking is that if I knew this, I could further customize either data source of the theme json file to yield the desired result.

 

Appreciate any help!

2 ACCEPTED SOLUTIONS
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my research, you do could change some fundamental configuration of your custom visual, please refer to below topic:

https://community.powerbi.com/t5/Custom-Visuals-Development/json-and-custom-visuals-with-power-bi-theme-possible/td-p/539850

You could use "ForceGraph1449359463895" name to change its configuration.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my research, you do could change some fundamental configuration of your custom visual, please refer to below topic:

https://community.powerbi.com/t5/Custom-Visuals-Development/json-and-custom-visuals-with-power-bi-theme-possible/td-p/539850

You could use "ForceGraph1449359463895" name to change its configuration.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you for finding that potential solution. I will mark it as accepted, but honestly it's beyond my current technical ability (or time committment Smiley Happy) to try. From that other thread, the missing piece seems to be publishing the unique codes associated with each viz type (e.g., advanceCardE03760C5AB684758B56AA29F9E6C257B).

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.