All Apps and Add-ons

Donut chart - Custom Visualization not loading at first time ? Have to refresh the panel several times to load it ?

pgadhari
Builder

Hi All,

I am using Donut - Custom Visualization from splunkbase - https://splunkbase.splunk.com/app/3238/ - instead of pie chart

I upgraded my Splunk version from 6.6 to 7.2 recently and observed that Donut-custom visualization is not loading when I open the dashboard for the first time. I have to refresh the page several times to display the donut chart in the panel. I have tried putting refresh parameter in the panel, but that is also not working. When the dashboard loads for the first time, the panel shows blank, after pressing refresh button several times, it loads the donut chart. But again after sometime, when I try to load the dashboard, the panel goes blank.

Whether anybody has got this issue before ?

Please help to resolve this issue ?

Thanks
PG

0 Karma

sdchakraborty
Contributor

I think the donut chart you downloaded not compatible with splunk 7. Please have a look at the splunk version there. However I tried in my system and it works. Can you also try the below donut and see.

https://splunkbase.splunk.com/app/3150/

Code with your donut chart which is working for me is below. Please see whether you are calling in same way.

<dashboard>
  <label>demo</label>
  <row>
    <panel>
      <viz type="viz_donut_c3.c3donut">
        <search>
          <query>index="_internal"
| stats count by source</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
      </viz>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>index="_internal"
| stats count by source</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">20</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">none</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma

pgadhari
Builder

Sure, will try with this donut chart and revert.

0 Karma

pgadhari
Builder

Hi guys... anybody has got the above issues ? can you provide any solution on it ?

0 Karma

niketn
Legend

@pgadhari Check in Browser Inspector tool for your Internet Browser as to whether there are any errors in the Console arising out of visualization.js JavaScript file.

Having said this I installed the Donut - Custom Visualization on 7.2 and it worked fine for me. So you may have to provide more details from your code , data and error. Please mask out any sensitive information before posting on Splunk Answers.

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

pgadhari
Builder

Actually, I reverted my Splunk version to 6.6.3 due to some other issues I was getting. I will share more details on this.

0 Karma
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...