All Apps and Add-ons

Splunk JS Stack: custom visualization issue rendering myviz

bizsplunk
Engager

hi team,
i have issue with custom visualization. i use Splunk JS stack to render myviz, but get this error:
"Error: Visualization "viz_tutorial_app.myRadialMeter" has not been registered with the system. It may not exist or might not be visible for the current user or app."

my code example:

    <panel>
      <html>
        <div id="mycustomviz"></div>
      </html>
    </panel>



datatest.js:
require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/visualizationregistry',
    'splunkjs/mvc/searchmanager',
    'splunkjs/mvc/simplexml/ready!'],
function(_, $, mvc, VisualizationRegistry, SearchManager){

        var mysearch = new SearchManager({
            id: "search19",
            earliest_time: "-1y@y",
            latest_time: "now",
            search: "index=zabbix | stats count by hostname",
            preview: true,
            cache: true,
        });

        var customViz = VisualizationRegistry.getVisualizer('viz_tutorial_app', 'myRadialMeter');
        var mytimeline = new customViz({
            id: "timeline1",
            managerid: "search19",
            el: $("#mycustomviz")
        }).render();
    }
);
0 Karma

deepashri_123
Motivator

Hey@bizsplunk,

You can refer this tutorial:
https://docs.splunk.com/Documentation/Splunk/7.1.2/AdvancedDev/CustomVizTutorial

Let me know if this helps!!

bizsplunk
Engager

hi @deepashri_123
i have already reffered to this guide, competed all and rechecked, but issue still persists.
my visualization.conf is
#
# Declare shared visualizations
#

[radial_meter]
label = myRadialMeter
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...