All Apps and Add-ons

Integrating D3js Diagrams into Splunk

mseto
Explorer

Hi,

I am trying to use D3.js files to use with Splunk. I saw that there are a few examples and tutorial on the music dashboard, but I noticed that they are using the "sankey-helper.js" file, which seems like the bridge between the sankey.js file with Splunk.

How do I start on writing a file similar to sankey-helper.js file that can be used with another diagram? (such as the voronoi arc map, or treemap, etc.)

0 Karma

bmacias84
Champion

If you are trying to make a chart interactive you can use jquery to bind objects to event listeners such as click. I've done that for a few charts.

0 Karma

mseto
Explorer

I'm trying to use other visualizations that are not in Splunk. Thank you for your reply.

0 Karma

bmacias84
Champion

I would recommend looking at the simple_xml_examples app by Splunk i demonstrates how to incorporate other visualization into Splunk.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Grab the Dashboard Examples App from https://splunkbase.splunk.com/app/1603/ for more extensive examples, including custom D3 diagrams.

martin_mueller
SplunkTrust
SplunkTrust

@mseto if you're not happy with the answer you could clarify what you're looking for to get a better one.

0 Karma

mseto
Explorer

I'm looking for a guide to write something like the sankey-helper.js file that will enable me to use other D3 diagrams. I feel that the examples alone are not enough because they do not tell us where each components come from, making it hard to determine what goes into the helper file that is needed so that the Splunk app can display the D3 diagrams.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You may also want to take a look at https://splunkbase.splunk.com/app/2785/

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Have you tried the official D3 page?

http://d3js.org/

0 Karma

chazilla44
New Member

Hi Martin, I am getting alot of answers to questions I never asked my only question was on best practices for copying apps / dashboards between environments.. Please don't reply to any other threads. Not me 😉

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Huh? You're following me, so you get notified. You can unfollow me from the button in the top right corner of my profile.

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 ...