All Apps and Add-ons

Is there a way to dynamically change the color of an node icon or label ?

polak
Engager

Hello,
Is it possible to use rangemap within "Flow Map Viz"?
I'd like to change color of the node icon or label text depending on the range value.

Thank you for the great app "Flow Map Viz"

nordinethales
Explorer

Hello Chris,

in the same way, I would like to know if it is possible to color the node(from or to), when using the link rows?

Thank you

BR

Nordine

0 Karma

chrisyounger
SplunkTrust
SplunkTrust

Hi @polak

Yes you can do either of these things. When you produce the table of data for this viz, each row should be either a node row (has a column called "node") or it should be a path row (either a column called "path" or columns "from" and "to"). Depending on if you want to color paths or nodes, then for either case make sure you include a column called "color" with either a friendly HTML color name (e.g. "red") or another HTML color spec (e.g. #FF0000)

I hope this makes sense. Its a bit confusing compared to normal visualizations.

here is a sample search you can run as an example:

|makeresults count=3 
| streamstats count as rowid 
| eval path = case(rowid==1,"a---b---c",rowid==2,"c---d",true(),"") 
| eval node = if(rowid==3,"b","") 
| eval color = case(rowid==1,"red",rowid==2,"green",true(),"orange")

Examine the tabular output of this, then test it with the vis to see what has changed.

All the best,

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...