<?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 resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111586#M6356</link>
    <description>&lt;P&gt;fdi01 thank you for your information. however, the width is not an issue. I am hoping to resize the height.&lt;/P&gt;

&lt;P&gt;thank you ..&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2015 00:59:02 GMT</pubDate>
    <dc:creator>ILOT</dc:creator>
    <dc:date>2015-03-31T00:59:02Z</dc:date>
    <item>
      <title>How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111582#M6352</link>
      <description>&lt;P&gt;I have a Dashboard with quite a few Single Values to display.&lt;/P&gt;

&lt;P&gt;15+ rows and 5 Columns.&lt;/P&gt;

&lt;P&gt;I want to use as much of the real estate on my screen as possible..&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;is it possible to resize the height of the panel/cell/single value visualization so I can fit more rows on my screen (before needing to scroll down). Resizing the panel itself or the whole row is fine.&lt;/LI&gt;
&lt;LI&gt;if not, is it possible to be able to place all that information in a table instead? I am a little stuck on how to do this...&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 06:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111582#M6352</guid>
      <dc:creator>ILOT</dc:creator>
      <dc:date>2015-03-30T06:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111583#M6353</link>
      <description>&lt;P&gt;Hi ILOT&lt;BR /&gt;
Go to your dashbord xml code add the following option in the following order&lt;BR /&gt;
For example in each panel and each single add :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="height"&amp;gt;enter a number px&amp;lt;/option&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For example :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;row&amp;gt;
            &amp;lt;panel&amp;gt;
                    &amp;lt;single&amp;gt;
                       &amp;lt;option name="height"&amp;gt;300px&amp;lt;/option&amp;gt;
                    &amp;lt;/single&amp;gt;
            &amp;lt;option name="height"&amp;gt;600px&amp;lt;/option&amp;gt;
            &amp;lt;/panel&amp;gt;
        &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Mar 2015 07:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111583#M6353</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-03-30T07:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111584#M6354</link>
      <description>&lt;P&gt;Don't think the Panel object have a options mapper named height.. I get this error&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;XML Syntax Error: Cannot find object mapper for panel type: option View more information about your request (request ID = 5519008ce19f0a940) in Search &lt;BR /&gt;
*&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;single&amp;gt;
    &amp;lt;title&amp;gt;Application Components&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;...&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="linkView"&amp;gt;search&amp;lt;/option&amp;gt;
  &amp;lt;/single&amp;gt;
  &amp;lt;option name="height"&amp;gt;600px&amp;lt;/option&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Adding it inside the Single Value tag also does not work.. &lt;/P&gt;

&lt;P&gt;At the moment I am doing this via Java script/CSS and it is messy as I have to resize a few visualization elements manually. I am hoping a much more elegant solution.&lt;/P&gt;

&lt;P&gt;I also do not have any splunk addons... (will addons help? sideview utils?)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 07:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111584#M6354</guid>
      <dc:creator>ILOT</dc:creator>
      <dc:date>2015-03-30T07:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111585#M6355</link>
      <description>&lt;P&gt;try this example below .js file. can help you to understannd:&lt;BR /&gt;
code xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;dashboard script="custom_layout_width.js"&amp;gt;
    &amp;lt;label&amp;gt;Layout Customization: Panel Width&amp;lt;/label&amp;gt;
    &amp;lt;row&amp;gt;
    &amp;lt;single&amp;gt;
    &amp;lt;searchString&amp;gt;index=_internal sourcetype=splunkd | stats count&amp;lt;/searchString&amp;gt;
    &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &amp;lt;option name="underLabel"&amp;gt;splunkd events&amp;lt;/option&amp;gt;
    &amp;lt;/single&amp;gt;
    &amp;lt;single&amp;gt;
    &amp;lt;searchString&amp;gt;index=_internal sourcetype=*access | stats count&amp;lt;/searchString&amp;gt;
    &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &amp;lt;option name="underLabel"&amp;gt;access events&amp;lt;/option&amp;gt;
    &amp;lt;/single&amp;gt;
    &amp;lt;chart&amp;gt;
    &amp;lt;searchString&amp;gt;index=_internal | timechart count&amp;lt;/searchString&amp;gt;
    &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &amp;lt;/chart&amp;gt;
    &amp;lt;/row&amp;gt;

    &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"custom_layout_width.js" file or code js:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    require(['jquery', 'splunkjs/mvc/simplexml/ready!'], function($) {
    // Grab the DOM for the first dashboard row
    var firstRow = $('.dashboard-row').first();
    // Get the dashboard cells (which are the parent elements of the actual panels and define the panel size)
    var panelCells = $(firstRow).children('.dashboard-cell');
    // Adjust the cells' width
    $(panelCells[0]).css('width', '20%');
    $(panelCells[1]).css('width', '20%');
    $(panelCells[2]).css('width', '60%');
    // Force visualizations (esp. charts) to be redrawn with their new size
    $(window).trigger('resize');
    });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after you have something like this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/31758-image_width.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111585#M6355</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2020-09-28T19:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111586#M6356</link>
      <description>&lt;P&gt;fdi01 thank you for your information. however, the width is not an issue. I am hoping to resize the height.&lt;/P&gt;

&lt;P&gt;thank you ..&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 00:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111586#M6356</guid>
      <dc:creator>ILOT</dc:creator>
      <dc:date>2015-03-31T00:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111587#M6357</link>
      <description>&lt;P&gt;Currently, the best I can come up with is manually resizing the required panels via java script.&lt;/P&gt;

&lt;P&gt;Anchoring every panel with an ID_(Column|Row|Data)_#&lt;/P&gt;

&lt;P&gt;Column = top column panel&lt;BR /&gt;
Row = Row header panel&lt;BR /&gt;
Data = Actual Search Results.&lt;/P&gt;

&lt;P&gt;JScript below resizes all except the column panel (and I will be able to customize Row/Data respectively if needed)&lt;BR /&gt;
Basically I am building the single panels and compiling them together like a table.&lt;/P&gt;

&lt;P&gt;As shown below, it is a little unwieldy and messy. I am hoping for something better from the community.&lt;/P&gt;

&lt;P&gt;Disclaimer, not sure if you can use the code below as it. As I was experimenting a lot, and I stripped down a lot of the code (because it was not relevant)..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(['jquery', 
        'splunkjs/mvc/simplexml/ready!'], 

function($) {

    $("[id*=ID]").each(function() {
    var match = /ID_?(Column|Row|Data)?_?(\d+)?/.exec($(this).attr('id'));
    console.log(match);

    if (match[1] == 'Column'){}
        if (match[1] == 'Row'){}
    else {
        $(this).find(".dashboard-panel").css('height', '68px');
        $(this).find(".dashboard-element").css('height', '68px');
        $(this).find(".panel-body").css('height', '24px');
        }

    });
    $(window).trigger('resize');
 });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111587#M6357</guid>
      <dc:creator>ILOT</dc:creator>
      <dc:date>2020-09-28T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111588#M6358</link>
      <description>&lt;P&gt;This worked for me.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 12:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111588#M6358</guid>
      <dc:creator>sjscott</dc:creator>
      <dc:date>2015-05-14T12:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to resize the height of single value dashboard panels to fit more rows on my screen or is there another option to avoid scrolling down?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111589#M6359</link>
      <description>&lt;P&gt;good thanks &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 21:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-resize-the-height-of-single-value-dashboard-panels-to-fit/m-p/111589#M6359</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-05-15T21:42:59Z</dc:date>
    </item>
  </channel>
</rss>

