Copy the following into your app folder from the examples app:
appserver/static/autodiscover.js
appserver/static/components/d3
appserver/static/components/sankey
Create your dashboard and make sure the "data-require" path references your app. Restart Splunk and clear your cache if needed.
<form script="autodiscover.js">
<label>Sankey Diagram</label>
<search id="sankey_search">
<title>My Title</title>
<query><![CDATA[
index=* rename src as from dst as to | stats count by from to | head 20
]]>
</query>
<earliest>1</earliest>
<latest>now</latest>
</search>
<row>
<panel>
<html>
<div id="sankey" class="splunk-view" data-require="app/<app_name>/components/sankey/sankey"
data-options='{
"managerid": "sankey_search",
"height": 400
}'>
</div>
</html>
</panel>
</row>
</form>
... View more