Dashboards & Visualizations

D3 Custom Chart Overlay - Graphic stays empty

Olli1919
Path Finder

Hello,

i also used the Splunk 6 Dashboard Examples and tried to recreate the view "Custom Chart Overlay" in my own app. I also get the table in the view, but both graphics ("Line+Bar Chart" and "with Auto-Discovery") are not rendered.

Here is what I did:
- Created a app with template "barebone"
- Copied the required files over
- custom_chart_overlay.xml
- ./appserver/static/custom_chart.js
- ./appserver/static/custom_chart.css
- ./appserver/static/autodiscover.js
- ./appserver/static/dashboard.js
- ./appserver/static/dashboard.css
- ./appserver/static/components/d3/*

When comparing the HTML source of the files, I see that the original panel also links to dashboard.css/.js, custom_chart.css/.js and autodiscover.js. But these do not show up in my new panel, even though these files are copied. Can someone please show me what I am missing here?

Thank and best regards,
Oliver

0 Karma
1 Solution

Olli1919
Path Finder

It seems the parser for the is case-agnostic. My app was named with large letters "TestAPP". Playing around with this tag and trying to link files from other apps worked. Trying to using cross-link but referencing the app itself also worked . Creating a new app with a lower case name on the filesystem "testapp2", having exactly the same files as the non-working "TestAPP" worked out fine - local .js and .css files are included as expected in the new app, graphs appear as intended.

View solution in original post

0 Karma

Olli1919
Path Finder

It seems the parser for the is case-agnostic. My app was named with large letters "TestAPP". Playing around with this tag and trying to link files from other apps worked. Trying to using cross-link but referencing the app itself also worked . Creating a new app with a lower case name on the filesystem "testapp2", having exactly the same files as the non-working "TestAPP" worked out fine - local .js and .css files are included as expected in the new app, graphs appear as intended.

0 Karma

Olli1919
Path Finder

I just converted the SimpleXML view to a HTML view and edited the source to include the stylesheet and script links to the .css and .js files. This gave working graphs. So it's about those .js files, that are for some reason left out by the SimpleXML view.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...