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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...