<?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: Using sideview variable for timechart range in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90678#M6016</link>
    <description>&lt;P&gt;Two days now and no reply?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2011 19:42:51 GMT</pubDate>
    <dc:creator>natrixia</dc:creator>
    <dc:date>2011-04-29T19:42:51Z</dc:date>
    <item>
      <title>Using sideview variable for timechart range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90677#M6015</link>
      <description>&lt;P&gt;I'm trying (without much success) to get the HiddenChartFormatter to get charting.axisY.minimumNumber to set itself based on a sideview variable that is determined in a pulldown. My code looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Pulldown"&amp;gt;
&amp;lt;param name="postProcess"&amp;gt;chart min(value) as min by valuebuck&amp;lt;/param&amp;gt;
&amp;lt;param name="name"&amp;gt;minnum&amp;lt;/param&amp;gt;
&amp;lt;param name="label"&amp;gt;minnum&amp;lt;/param&amp;gt;
&amp;lt;param name="staticFieldsToDisplay"&amp;gt;&amp;lt;/param&amp;gt;
&amp;lt;param name="searchFieldsToDisplay"&amp;gt;
&amp;lt;list&amp;gt;
  &amp;lt;param name="label"&amp;gt;min&amp;lt;/param&amp;gt;
  &amp;lt;param name="value"&amp;gt;min&amp;lt;/param&amp;gt;
&amp;lt;/list&amp;gt;
&amp;lt;/param&amp;gt;
    &amp;lt;module name="Search" layoutPanel="panel_row2_col1"&amp;gt;
        &amp;lt;param name="search"&amp;gt;counter="Active Items" | timechart span=2h max(value)&amp;lt;/param&amp;gt;
        &amp;lt;module name="HiddenChartFormatter"&amp;gt;
          &amp;lt;param name="charting.chart"&amp;gt;line&amp;lt;/param&amp;gt;
          &amp;lt;param name="charting.axisY.minimumNumber"&amp;gt;$minnum$&amp;lt;/param&amp;gt;
          &amp;lt;module name="FlashChart"&amp;gt;
            &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
            &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;
              &amp;lt;module name="ViewRedirector"&amp;gt;
                &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
              &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
          &amp;lt;module name="ViewRedirectorLink"&amp;gt;
            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this possible? What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 07:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90677#M6015</guid>
      <dc:creator>natrixia</dc:creator>
      <dc:date>2011-04-28T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using sideview variable for timechart range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90678#M6016</link>
      <description>&lt;P&gt;Two days now and no reply?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 19:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90678#M6016</guid>
      <dc:creator>natrixia</dc:creator>
      <dc:date>2011-04-29T19:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using sideview variable for timechart range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90679#M6017</link>
      <description>&lt;P&gt;You're very close.  But HiddenChartFormatter is not a Sideview module and it cannot do any $foo$ substitution. &lt;/P&gt;

&lt;P&gt;Although the Sideview modules allow $foo$ substitution pretty much anywhere, the core Splunk modules only allow $foo$ substitution in a couple very particular places and unfortunately that is not one of them. &lt;/P&gt;

&lt;P&gt;Solution:  &lt;/P&gt;

&lt;P&gt;1) Simplest. Continue using HiddenChartFormatter to do the static keys like 'charting.chart',  but remove the 'charting.axisY.minimumNumber' key from HiddenChartFormatter entirely. Then change the &lt;CODE&gt;name&lt;/CODE&gt; param of your pulldown from &lt;CODE&gt;minnum&lt;/CODE&gt;  to 'charting.axisY.minimumNumber'. &lt;/P&gt;

&lt;P&gt;2) remove the 'charting.axisY.minimumNumber' from HiddenChartFormatter, but use a ValueSetter module to convert your 'minnum' key into a 'charting.axisY.minimumNumber' key... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="ValueSetter"&amp;gt;
  &amp;lt;param name="name"&amp;gt;charting.charting.axisY.minimumNumber&amp;lt;/param&amp;gt;
  &amp;lt;param name="value"&amp;gt;$minnum$&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assumption: I assume there is a Search module upstream from the first Pulldown, that that Pulldown's postProcess param is working with.  You seem to know what you're doing but this example isn't really complete without that Search module so I thought I'd point out the assumption for the benefit of other readers.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 20:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90679#M6017</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-04-29T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using sideview variable for timechart range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90680#M6018</link>
      <description>&lt;P&gt;Sorry - I got busy and didnt see your question there. And there's only a couple of us right now who answer the Sideview questions.   See the solution below.  Cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 20:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90680#M6018</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-04-29T20:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using sideview variable for timechart range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90681#M6019</link>
      <description>&lt;P&gt;It works, awesome! Thank you very much Nick! There is indeed a Search module upstream but I left it out for brevity's sake.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2011 00:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-sideview-variable-for-timechart-range/m-p/90681#M6019</guid>
      <dc:creator>natrixia</dc:creator>
      <dc:date>2011-04-30T00:26:56Z</dc:date>
    </item>
  </channel>
</rss>

