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.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...