All Apps and Add-ons

Integrating D3js Diagrams into Splunk

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

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

Explorer

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

0 Karma

Champion

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

0 Karma

SplunkTrust
SplunkTrust

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

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

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

SplunkTrust
SplunkTrust

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

0 Karma

SplunkTrust
SplunkTrust

Have you tried the official D3 page?

http://d3js.org/

0 Karma

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

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.

State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!