All Apps and Add-ons

Forced directed graph node color customization based on behaviour

h52huang
Path Finder

Hi, is it possible to have more control on colors of node for forced directed graphs please?

For example,
if node A only has incoming edges, then I make it red;
if node B only has outgoing edges, I make it green;
and if node C has both incoming and outgoing edges, I make it black.

Thank you.

0 Karma

kuvinay
New Member

Hello all, Am trying to apply drilldown for this viz on node selection, unfortunately not working. Any ways around?

Looking for any answers.

Thanks

0 Karma

dperre_splunk
Splunk Employee
Splunk Employee

Hi h52huang,

Mickey here and I am the developer of the app.

So what you are asking could be done technically but it would break the exisiting functionality.

Colouring is dynamic at this point in time so the viz will try and colour groups of nodes together

If you could describe why you want to distinguish these types of connections that would help me understand the problem

0 Karma

h52huang
Path Finder

@dperre
Thanks so much for answering this. Really appreciate. 🙂
In my case, I use the nodes to represent certain hosts in a network. It would be nice to distinguish visually among hosts that only has incoming traffic, outgoing traffic, or both.
Thanks again!!

0 Karma

dperre_splunk
Splunk Employee
Splunk Employee

Have you tried enabling arrows on the visualisation? That will show you link direction 🙂

0 Karma

h52huang
Path Finder

Thank you very much @dperre
I enabled arrows and the link direction are great. There are fancy color controls on it too.

I just noticed there are colors on node too!!! But I am not sure what each color means. Is there a way to have custom control on the node colors please? I can only find the 'Line Color' control from form visualization.

Thanks again!!! Great tool!!

0 Karma

niketn
Legend

@h52huang, you should try the Sankey Diagram Custom Visualization for this. If you use Categorical colors it should show you color starting from one node to other i.e. source to destination depending on your first column and seconds column respectively. Hope this helps 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...