Dashboards & Visualizations

How to change the color of the strip in a Sankey Diagram based on the text displayed?

apurvsrivastav
Engager

I want to change the color of the strip between two nodes depending upon the content (display text) of nodes.

So for example if one of the nodes (in Sankey Daigram) has "Error" in its name, then color of strip linked to it must change to RED.

MuS
SplunkTrust
SplunkTrust

Hi apurvsrivastav,

I don't think it's the perfect answer - but I post it as one, because the question is not Splunk related as well 😉
Have a look at the posts I found using a simple google search https://www.google.com/webhp?hl=en#hl=en&q=d3+sankey+change+color+based+on+value , because you must do this in either the sankey.js or using css but not in Splunk itself:

Hope this helps ...

cheers, MuS

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...