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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...