Dashboards & Visualizations

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


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.


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!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...