Dashboards & Visualizations

Reset zoom button on charts doesn't works when i select some other value.

ruchigupta
New Member

I have a chart panel and some other panel (X). When i click on the value from other panel X, my chart changes accordingly. So The problem i am facing is:
When i click on 1st value from panel X and zoom the chart, i can see the reset zoom button. But after performing zoom if i left the chart (zoom) as it is and i select the other value in other panel X and again i zoom the chart. At this point i cannot see the reset zoom button/

Thanks in advance!

Tags (3)
0 Karma

493669
Super Champion

Hi,
I tried to replicate your issue but I am able to get reset zoom button after changing graph plotting criteria .
Is your js overriding this zoom functionality?
here is run anywhere search:

 <form>
   <label>Dropdown</label>
   <fieldset submitButton="false">
     <input type="dropdown" token="sourcetype" searchWhenChanged="true">
       <label>Select a sourcetype</label>
       <default>*</default>
       <choice value="scheduler">scheduler</choice>
       <choice value="splunk_web_access">splunk_web_access</choice>
       <choice value="splunk_web_service">splunk_web_service</choice>
       <choice value="splunkd">splunkd</choice>
       <choice value="splunkd_access">splunkd_access</choice>
       <choice value="splunkd_ui_access">splunkd_ui_access</choice>
     </input>
   </fieldset>
   <row>
     <panel>
       <title>Dropdown- sourcetype=$sourcetype$</title>
       <chart>
         <search>
           <query>
            index=_internal |search sourcetype="$sourcetype$"|timechart count(sourcetype) count(source)</query>
           <earliest>-20h@h</earliest>
           <latest>now</latest>
         </search>
         <option name="charting.chart">column</option>
       </chart>
     </panel>
   </row>
 </form>

Are you getting same issue in this dashboard also?
alt text

0 Karma

niketn
Legend

@ruchigupta, reset button is usually shown in case of selection. Please refer to doumentation for details: http://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/Chartcontrols#Pan_and_zoom_chart_control...

For community to help you you might have to share the Panel X and Chart Panel Simple XML code.

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

56838396
New Member

Hi niketnilay,
Is it mandatory to click reset zoom before switching to other value?

0 Karma

niketn
Legend

In a Timechart when you zoom in once, you can further zoom inside the selection by zooming in again. However, to go back to previous selection you would have to reset zoom.

When you zoom in using <selection> until you reset you can slide the zoomed selection, but can not further zoom in.

You can however, code click/selection or any other input using JavaScript to reset the selection/tokens as per your requirements.

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

56838396
New Member

I am not able to upload screenshot in either way (no karma points).
Could you please provide a JavaScript code example to proceed further. I mean if i need to reset the value(zoom button) when i switch to other chart(2 values are there and the chart changes when i select one value and it changes again when i select other value ).
Suppose for chart i have used zoom button and without doing reset zoom i switch to other chart (when i click on other value), the reset zoom button does not work.
So for this i would need to use javascript so that the zoom button functionality gets reset.

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 ...