<?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 Dashboard - Dynamic Property Height in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Dynamic-Property-Height/m-p/360824#M40464</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I would like to know if there is any way to implement a dynamic height for my elements on the Dashboard depending of their values. In my case I am using the element Horseshoe Meter custom app, and based on the value I would like to increase or decrease its height property value.&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 22:08:02 GMT</pubDate>
    <dc:creator>danillopavan</dc:creator>
    <dc:date>2017-11-13T22:08:02Z</dc:date>
    <item>
      <title>Dashboard - Dynamic Property Height</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Dynamic-Property-Height/m-p/360824#M40464</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I would like to know if there is any way to implement a dynamic height for my elements on the Dashboard depending of their values. In my case I am using the element Horseshoe Meter custom app, and based on the value I would like to increase or decrease its height property value.&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 22:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Dynamic-Property-Height/m-p/360824#M40464</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-11-13T22:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard - Dynamic Property Height</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Dynamic-Property-Height/m-p/360825#M40465</link>
      <description>&lt;P&gt;Yes there is a way, though I've got to say changing the height of the Horseshoe Meter app sounds like a strange use-case (are you sure you aren't trying to hide the panel? if you are this would not be the right way to do this). Inside your &lt;CODE&gt;&amp;lt;search&amp;gt;&lt;/CODE&gt; element you will need to add a &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; element which will then do a condition match on whatever value your meter is using (I will assume the field &lt;CODE&gt;count&lt;/CODE&gt; from a stats command) and set a height token like so (notice also a default height as well):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;viz type="horseshoe_meter_app.horseshoe_meter"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;your search|stats count&amp;lt;/query&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match=" $result.count$ &amp;gt; 300 "&amp;gt;
              &amp;lt;set token="hsheight"&amp;gt;500&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="hsheight"&amp;gt;300&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="height"&amp;gt;$hsheight$&amp;lt;/option&amp;gt;
      &amp;lt;/viz&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can find related information on token usage in dashboards here that covers this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:40:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Dynamic-Property-Height/m-p/360825#M40465</guid>
      <dc:creator>worshamn</dc:creator>
      <dc:date>2017-11-28T16:40:41Z</dc:date>
    </item>
  </channel>
</rss>

