<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change graph of a panel dynamically? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131993#M36007</link>
    <description>&lt;P&gt;You can adapt the TabSwitcher example below to include arbitrary trees as children, including different searches.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2013 07:51:21 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-11-08T07:51:21Z</dc:date>
    <item>
      <title>How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131985#M35999</link>
      <description>&lt;P&gt;I'm using advanced XML and I have two panels. One panel will have two submitButton modules with HiddenSearch modules inside it. So, that upon clicking a button the search gets executed and the chart will be displayed in the second panel. Now, if I click other button, it has to run the corresponding search and in the second panel the previous chart should be replaced by this new chart. How to do it?&lt;/P&gt;

&lt;P&gt;I tried by putting searches inside button, but upon clicking two buttons the charts are showing one below the other in the second panel. The first chart is not getting replaced by the second, instead it is getting appended. Is there a way to solve it? and here is the code of my dashboard :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view template="dashboard.html"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;LABEL&gt;Fab Operator New&lt;/LABEL&gt;&lt;BR /&gt;
&lt;MODULE name="AccountBar" layoutpanel="appHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;MODULE name="AppBar" layoutpanel="navigationHeader"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;MODULE name="SideviewUtils" layoutpanel="appHeader"&gt;&lt;/MODULE&gt; &lt;/P&gt;

&lt;P&gt;&lt;MODULE name="Message" layoutpanel="messaging"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="filter" /&gt;*&lt;BR /&gt;
&lt;PARAM name="maxSize" /&gt;2&lt;BR /&gt;
&lt;PARAM name="clearOnJobDispatch" /&gt;False&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt; &lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" autorun="True" layoutpanel="panel_row1_col1_grp1" group="Tool Health Monitor"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="earliest" /&gt;rt&lt;BR /&gt;
    &lt;PARAM name="latest" /&gt;rt&lt;BR /&gt;
    &lt;PARAM name="search" /&gt;sourcetype="EDA_XML" TR | xmlkv | search GasPressureLine2="*" | stats avg(GasPressureLine2) as myCount | gauge myCount 750 1000 1250 1500&lt;BR /&gt;
       &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
            &lt;PARAM name="charting.chart" /&gt;radialGauge&lt;BR /&gt;
            &lt;PARAM name="chartTitle" /&gt;Gas Pressure Line 2&lt;BR /&gt;
            &lt;PARAM name="charting.chart.rangeValues" /&gt;[0,3000,4000,5000]&lt;BR /&gt;
            &lt;PARAM name="charting.chart.style" /&gt;minimal&lt;BR /&gt;
            &lt;PARAM name="charting.gaugeColors" /&gt;[0x84e900,0xffe800,0xbf3030]&lt;BR /&gt;
                &lt;MODULE name="FlashChart"&gt;&lt;BR /&gt;
                    &lt;PARAM name="width" /&gt;130px&lt;BR /&gt;
                    &lt;PARAM name="height" /&gt;130px&lt;BR /&gt;
               &lt;/MODULE&gt;&lt;BR /&gt;
        &lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch" autorun="True" layoutpanel="panel_row1_col1_grp2"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="earliest" /&gt;rt&lt;BR /&gt;
    &lt;PARAM name="latest" /&gt;rt&lt;BR /&gt;
    &lt;PARAM name="search" /&gt;sourcetype="EDA_XML" TR | xmlkv | search GasPressureLine2="*" | stats avg(GasPressureLine2) as myCount | gauge myCount 750 1000 1250 1500&lt;BR /&gt;
        &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
            &lt;PARAM name="charting.chart" /&gt;fillerGauge&lt;BR /&gt;
            &lt;PARAM name="chartTitle" /&gt;Gas Supply Level&lt;BR /&gt;
            &lt;PARAM name="charting.chart.rangeValues" /&gt;[0,3000,4000,5000]&lt;BR /&gt;
            &lt;PARAM name="charting.gaugeColors" /&gt;[0x84e900,0xffe800,0xbf3030]&lt;BR /&gt;
            &lt;PARAM name="charting.chart.style" /&gt;minimal&lt;BR /&gt;
            &lt;MODULE name="FlashChart"&gt;&lt;BR /&gt;
               &lt;PARAM name="width" /&gt;130px&lt;BR /&gt;
               &lt;PARAM name="height" /&gt;130px&lt;BR /&gt;
            &lt;/MODULE&gt;&lt;BR /&gt;
        &lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="SubmitButton" layoutpanel="panel_row1_col1_grp1"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="label" /&gt;More Details&lt;BR /&gt;
    &lt;PARAM name="allowSoftSubmit" /&gt;False&lt;BR /&gt;
    &lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1"&gt;&lt;BR /&gt;
        &lt;PARAM name="search" /&gt;sourcetype="EDA_XML" TR | xmlkv | search GasTemperature="*" | timechart values(GasPressureLine2) &lt;BR /&gt;
        &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;&lt;BR /&gt;
            &lt;PARAM name="charting.chart" /&gt;line&lt;BR /&gt;&lt;BR /&gt;
            &lt;PARAM name="chartTitle" /&gt;Gas Pressure Line 2&lt;BR /&gt;
            &lt;MODULE name="FlashChart"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
        &lt;/MODULE&gt;&lt;BR /&gt;
    &lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="SubmitButton" layoutpanel="panel_row1_col1_grp2"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="label" /&gt;More Details&lt;BR /&gt;
    &lt;PARAM name="allowSoftSubmit" /&gt;False&lt;BR /&gt;
    &lt;MODULE name="HiddenSearch" layoutpanel="panel_row2_col1"&gt;&lt;BR /&gt;
        &lt;PARAM name="search" /&gt;sourcetype="EDA_XML" TR | xmlkv | search GasTemperature="*" | timechart values(GasSupplyLevel) &lt;BR /&gt;
        &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;&lt;BR /&gt;
            &lt;PARAM name="charting.chart" /&gt;line&lt;BR /&gt;&lt;BR /&gt;
            &lt;PARAM name="chartTitle" /&gt;Gas Supply Level&lt;BR /&gt;
            &lt;MODULE name="FlashChart"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
        &lt;/MODULE&gt;&lt;BR /&gt;
    &lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 04:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131985#M35999</guid>
      <dc:creator>takerraj</dc:creator>
      <dc:date>2013-11-07T04:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131986#M36000</link>
      <description>&lt;P&gt;Have you taken a look at the TabSwitcher module?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 07:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131986#M36000</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-11-07T07:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131987#M36001</link>
      <description>&lt;P&gt;No, I didn't. But, a Tab switcher without showing tab labels will help I guess. Is a tab switcher without showing showing tab labels possible?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 07:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131987#M36001</guid>
      <dc:creator>takerraj</dc:creator>
      <dc:date>2013-11-07T07:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131988#M36002</link>
      <description>&lt;P&gt;You could do a third dummy panel without any content if hiding all panels doesn't exist.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 07:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131988#M36002</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-11-07T07:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131989#M36003</link>
      <description>&lt;P&gt;I'm actually new to splunk and I'm learning it. So, don't know much about all the modules. If you could suggest me a way out, then it'll be great Martin. BTW, is it possible to have tab switcher without tabs on it, or some way to hide them. So, if we change the tabs in the background, in the front the user will look as if the graph is really changing.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 08:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131989#M36003</guid>
      <dc:creator>takerraj</dc:creator>
      <dc:date>2013-11-07T08:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131990#M36004</link>
      <description>&lt;P&gt;Ah, you wanted to hide the tab labels - I don't think that's possible without customization, that'd defeat the purpose of tabs.&lt;/P&gt;

&lt;P&gt;More generally, what's your use case / what are you trying to achieve? Based on the XML you posted I'm guessing you want to change the visualization of a chart dynamically?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131990#M36004</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-11-07T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131991#M36005</link>
      <description>&lt;P&gt;Here's an example of how to use the TabSwitcher module:&lt;/P&gt;

&lt;!-- language: lang-xml --&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view isSticky="False" isVisible="true" onunloadCancelJobs="true" template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;Dynamic Charts&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="appHeader" /&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="appHeader" /&amp;gt;
  &amp;lt;module name="SideviewUtils" layoutPanel="appHeader" /&amp;gt;
  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;2&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;

  &amp;lt;module name="Search" layoutPanel="panel_row1_col1" group="Chart" autoRun="True"&amp;gt;
    &amp;lt;param name="earliest"&amp;gt;-7d@d&amp;lt;/param&amp;gt;
    &amp;lt;param name="search"&amp;gt;
| metadata type=hosts index=_internal | stats sum(totalCount) as count | gauge count 0 100000 500000 1000000
&amp;lt;/param&amp;gt;
    &amp;lt;param name="latest"&amp;gt;now&amp;lt;/param&amp;gt;
    &amp;lt;param name="group"&amp;gt;Chart&amp;lt;/param&amp;gt;
    &amp;lt;module name="JobProgressIndicator"&amp;gt;

      &amp;lt;module name="TabSwitcher"&amp;gt;
        &amp;lt;param name="mode"&amp;gt;independent&amp;lt;/param&amp;gt;
        &amp;lt;module name="HiddenChartFormatter" group="radialGauge"&amp;gt;
          &amp;lt;param name="chart"&amp;gt;radialGauge&amp;lt;/param&amp;gt;
          &amp;lt;module name="JSChart" /&amp;gt;
        &amp;lt;/module&amp;gt;
        &amp;lt;module name="HiddenChartFormatter" group="fillerGauge"&amp;gt;
         &amp;lt;param name="chart"&amp;gt;fillerGauge&amp;lt;/param&amp;gt;
          &amp;lt;module name="JSChart" /&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;

    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131991#M36005</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-11-07T12:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131992#M36006</link>
      <description>&lt;P&gt;No, not just the visualization of chart. The entire chart has to be changed (Search string etc).&lt;/P&gt;

&lt;P&gt;What I'm trying to achieve is this. In the first panel, I have two radial gauges and below each gauge have a button. So, a radial gauge and a button. When I click on that button, the corresponding graph (chart over time) has to be loaded in the second panel.&lt;/P&gt;

&lt;P&gt;That is the requirement. Now, when I click on a button the first time, the chart is loading in the second panel. Now, if I click on the button of another radial gauge its corresponding graph is getting appended below, instead of replacing.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 13:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131992#M36006</guid>
      <dc:creator>takerraj</dc:creator>
      <dc:date>2013-11-07T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change graph of a panel dynamically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131993#M36007</link>
      <description>&lt;P&gt;You can adapt the TabSwitcher example below to include arbitrary trees as children, including different searches.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2013 07:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-graph-of-a-panel-dynamically/m-p/131993#M36007</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-11-08T07:51:21Z</dc:date>
    </item>
  </channel>
</rss>

