Splunk Dev

TableView library causing VisualizationRegistry error on dashboard

skisoccer13
Explorer

We just upgraded from v6.4 to v7.0.1 and now I am getting an error when trying to use the TableView component on a dashboard. The dashboard will load fine with TableElement but I need the TableView to do a custom cell renderer.

The dashboard previously worked before the upgrade. The error makes sense but I can't figure out how to get around it. I've tried putting delays in the Javascript but I still get the error:

"VisualizationRegistry has not been populated yet. Make sure that the visualizations collection is loaded before attempting to use it."

1 Solution

skisoccer13
Explorer

It turned out to be having to simply include "splunkjs/ready!" as a parameter to require. This oddly worked in v6 of Splunk without it though.

View solution in original post

skisoccer13
Explorer

It turned out to be having to simply include "splunkjs/ready!" as a parameter to require. This oddly worked in v6 of Splunk without it though.

richgalloway
SplunkTrust
SplunkTrust

@skisoccer13, if your problem is resolved, please accept the answer (it's OK to accept your own answer) to help future readers.

---
If this reply helps you, Karma would be appreciated.
0 Karma

skisoccer13
Explorer

I oddly cannot recreate the problem on a different instance of Splunk. I will have to try again tomorrow. I am going to follow this tutorial instead of the one in the Dashboard Examples app since I am doing a pure HTML dashboard: http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAE5Q

0 Karma

niketn
Legend

@skisoccer13, Simple XML JavaScript Extension should also work in HTML Dashboards. But you can go ahead and try out HTML dashboard if that is easier for you.

If you are planning to use Sparklines using TableView, then the same are available directly via Simple XML chart configurations using <format> option. Refer to my Splunk Wiki Talk topic on various Table Sparkline (PS: Splunk does not support all Sparklines officially) https://wiki.splunk.com/User_talk:Niketnilay#Topic_11:_Types_of_jQuery_Sparklines_in_Splunk_.28besid...
You can also refer to Splunk Dashboard Examples App for Table Element with Sparklines example, which illustrates this.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@skisoccer13, I would expect it to be some issue with your JavaScript code. Have you tried checking out Splunk Dashboard Examples app from Splunkbase to see whether the Table Cell color and Table Roe color examples work fine or Not. They also use custom cell rendering.

If you want us to help you with your scenario you might have to share your JavaScript code so that we can figure out where the issue is.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
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, ...