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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...