Splunk Search

Why are D3 Bubble Charts not displaying when I change the selection on a drop-down from the default value?

ashish9433
Communicator

I want to display D3 Bubble charts on selection of a value from the drop-down. The chart for the default value is displayed.

alt text

But when i change the selection from the drop-down, the bubble chart is not displayed.

alt text

However, it gets displayed on refreshing the page.
The code is as follows:

<form script="autodiscover.js">
  <label>BubbleChart</label>
  <description></description>
  <fieldset autoRun="true"  submitButton="false"  searchWhenChanged="true">
    <input type="dropdown" token="field1_tok">
      <label>Select a User:</label>
      <default>*_004402600010833.usagestats.txt</default>
      <choice value="*_004402600010833.usagestats.txt">MEID 004402600010833</choice>
      <choice value="*_004402600008210.usagestats.txt">MEID 004402600008210</choice>
    </input>
  </fieldset>
  <row>
    <html>
          <h2>Time Spent per Category(Per User)</h2>
            <div id="bubbleSearch1"
                 class="splunk-manager"
                 data-require="splunkjs/mvc/searchmanager"
                 data-options='{
                    "search": "sourcetype=\"usage\" source=$field1_tok$|eval NEW_TIME=rtrim(Duration,\" ms\")|eval CONV = round((NEW_TIME/60000),2)|stats sum(CONV) as TDURATION by tag,APP",
                    "earliest_time": "",
                    "status_buckets": 0,
                    "cancelOnUnload": true,
                    "auto_cancel": 90,
                    "preview": true
                 }'>
            </div>    
        <div id="bubbleChart1"
                 class="splunk-view"
                 data-require="app/simple_xml_examples/components/bubblechart/bubblechart"
                 data-options='{
                    "managerid": "bubbleSearch1",
                    "nameField": "APP",
                    "categoryField": "tag",
                    "valueField": "TDURATION",
                    "height": 450
                 }'>
            </div>
        </html>
  </row>
</form>
Tags (4)
0 Karma

gyslainlatsa
Motivator

hi ashish9433,
trying to put earlist_time: "0" and latest_time : "now" in the section `

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...