All Apps and Add-ons

How to change color for select value in Force Directed App?


I create a simple dashboard from Force Directed, and me interested, how to change color for select value?
Example: there is input (token with name $token$ and value "B" or other), and I make this panel...
alt text

How to set for example red color to "B" if he in $token$

0 Karma

Splunk Employee
Splunk Employee

Hey sbimizry,

To rephrase your question, you would like individual colours for particular nodes? Is that right?

If so, it may not be possible without some heavy development work as there is no concept of a node settings guide as all data is read in a row by row format.

0 Karma

Ultra Champion

Hi, @sbimizry

| makeresults count=2
| streamstats count
| eval _time = if (count==2,relative_time(_time,"-1h@m"), relative_time(_time,"@m"))
| makecontinuous span=1m
| eval rand1=random() % 26, rand2=random() % 26
| eval src=substr(upper("abcdefghijklmnopqrstuvwxyz"),rand1,1)
| eval dst=substr(upper("abcdefghijklmnopqrstuvwxyz"),rand2,1)
| streamstats count as ex
| eval count = pow(2, ex - 1)
| table src, dst, count

I tried and found that the color can be defined by a third number.
Therefore, it might be possible to create a dashboard that displays both a table and a graph, and click on the value in the table to bring that number to the graph.

0 Karma
Get Updates on the Splunk Community!

Using Machine Learning for Hunting Security Threats

REGISTER NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more ...

Security Highlights | November 2022 Newsletter

 November 2022 2022 Gartner Magic Quadrant for SIEM: Splunk Named a Leader for the 9th Year in a RowSplunk is ...

Platform Highlights | November 2022 Newsletter

 November 2022 Skill Up on Splunk with our New Builder Tech Talk SeriesCan you build it? Yes you can! *play ...