All Apps and Add-ons

Splunk 6.x Dashboard Examples: Why does Force Direct diagram not render lines and how to fix this?

bandit
Motivator

The sample Force Direct diagram only renders the tips of the arrows(arrowheads), however not the arrow lines.
The preview graphic shows line and the arrow tips.
How can I render the arrow lines?

https://apps.splunk.com/app/1603/
http://localhost:8000/en-US/app/simple_xml_examples/custom_viz_forcedirected

![alt text][1] [1]: /storage/temp/24568-force-directed-thumbnail.jpg
![alt text][2] [2]: /storage/temp/24569-force-directed-example.jpg

The thumbnail in the app shows the lines.
The app example doesn't have the lines.

0 Karma
1 Solution

bmacias84
Champion

The force direction chart works in the Splunk Web Framework Toolkit. It appears to be an issue with attribute mapping.

View solution in original post

JonoCoetzee
Engager

I don't know if you solved this already but the problem is that the css file is not loaded in the example. The simplest way is to add require("css!./forcedirected.css"); to forcedirected.js so that it looks like the following:

define(function(require, exports, module) {

var _ = require('underscore');
var d3 = require("../d3/d3");
var SimpleSplunkView = require("splunkjs/mvc/simplesplunkview");

require("css!./forcedirected.css");

var ForceDirected = SimpleSplunkView.extend({
0 Karma

bmacias84
Champion

The force direction chart works in the Splunk Web Framework Toolkit. It appears to be an issue with attribute mapping.

bandit
Motivator

Any workaround until a fix is published to Splunk 6.x Dashboard Examples?

0 Karma

bmacias84
Champion

My suggestion would be to use the https://apps.splunk.com/app/1613/ and open a support ticket.

bandit
Motivator

The version in Web Framework Toolkit worked.

Thanks,

Rob

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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