- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to change the color of the strip in a Sankey Diagram based on the text displayed?
apurvsrivastav
Engager
11-09-2015
10:20 PM
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.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

MuS
Legend
11-10-2015
01:38 PM
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:
- http://stackoverflow.com/questions/22439891/d3-sankey-chord-colors
- http://stackoverflow.com/questions/13006712/d3-js-sankey-diagram-rectangles-fill-color
- http://stackoverflow.com/questions/30614921/changing-the-colour-of-the-node-in-sankey-diagram-using-...
Hope this helps ...
cheers, MuS
