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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...