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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Implementing Zero Trust (ZT) across complex environments often falters at the very beginning due to a ...