<?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 format table grid in simple XML? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516658#M34579</link>
    <description>&lt;P&gt;Thanks a lot for this hint!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2020 09:03:12 GMT</pubDate>
    <dc:creator>wolfgangs</dc:creator>
    <dc:date>2020-08-28T09:03:12Z</dc:date>
    <item>
      <title>How to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516502#M34562</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have sucessfully played with column and cell colors for tables, but could not find any configuration option for table gridlines (size in px and colour).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Is there anybody with a hint?&lt;BR /&gt;just would need the &amp;lt;option name=xxxx&amp;gt;, if it works that way &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 22:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516502#M34562</guid>
      <dc:creator>wolfgangs</dc:creator>
      <dc:date>2022-02-15T22:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516604#M34570</link>
      <description>&lt;P&gt;You could edit the dashboard and switch to source mode, then add a hidden panel with css for the relevant attributes prior to the first row&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;row depends="$STYLES$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          .results-table .wrapped-results td{
            border:2px solid #FF0000;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 21:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516604#M34570</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-27T21:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516658#M34579</link>
      <description>&lt;P&gt;Thanks a lot for this hint!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 09:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/516658#M34579</guid>
      <dc:creator>wolfgangs</dc:creator>
      <dc:date>2020-08-28T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585238#M47970</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I guess I am missing something.&lt;BR /&gt;I.e. I have a table in the panel shown below.&lt;BR /&gt;&lt;BR /&gt;Where hidden panel code should go? Between &amp;lt;row&amp;gt; and &amp;lt;panel&amp;gt; or aftr the &amp;lt;panel&amp;gt;?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;---------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;CPU Utilization, Processor Time&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.dashboard-panel h2{&lt;BR /&gt;color:red !important;&lt;BR /&gt;text-align: center !important;&lt;BR /&gt;font-weight: bold !important;&lt;BR /&gt;border-top-right-radius: 15px;&lt;BR /&gt;border-top-left-radius: 15px;&lt;BR /&gt;background:#f1f5d7 !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 22:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585238#M47970</guid>
      <dc:creator>bigll</dc:creator>
      <dc:date>2022-02-15T22:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585296#M47974</link>
      <description>&lt;P&gt;Exactly as I showed you - the $STYLES$ token should not be defined anywhere in your dashboard - in this way, the whole row is not displayed (making the title you used redundant) - however, the style is still sent to the browser so it can effect the CSS defined in the style block&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 08:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585296#M47974</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-16T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585399#M47981</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;BR /&gt;Works as designed.&lt;BR /&gt;Any suggestions/links for formatting tables in dashboard&amp;nbsp; beyond those options that are on the screen?&lt;BR /&gt;I.e. I can change cell background based on scale, but can I do font weight/color instead of cell background?&lt;BR /&gt;&lt;BR /&gt;TIA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585399#M47981</guid>
      <dc:creator>bigll</dc:creator>
      <dc:date>2022-02-16T16:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to format table grid in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585400#M47982</link>
      <description>&lt;P&gt;CSS is your friend! Here are just a couple of things you can do with CSS&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #tiles table tbody tr{
            margin-right:10px;
            margin-bottom:10px;
          }
          #tiles table tbody tr td{
            width: 180px;
            text-align: center;
          }
          #tiles table tbody tr td[data-cell-index="1"]{
            font-size: 2em;
          }
          #tiles table tbody td div.multivalue-subcell[data-mv-index="1"]{
            display: none;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel id="tiles"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults 
| eval _raw="Environment,Application,Hostname,Status
EUAT,MC,H1,RUNNING
EUAT,MC,H2,DOWN
DEV,IC,H4,ERROR
UAT,IC,HK,RUNNING"
| multikv forceheader=1
| table Environment Application Hostname Status
| eval Application=mvappend(Application,case(Status="RUNNING","GREEN",Status="DOWN","RED",Status="ERROR","ORANGE"))&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&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="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;format type="color"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"RED"), "#ff0000",match(value,"ORANGE"), "#ff8000",match(value,"GREEN"),"#00ff00",true(),"#ffffff")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 17:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-format-table-grid-in-simple-XML/m-p/585400#M47982</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-16T17:01:20Z</dc:date>
    </item>
  </channel>
</rss>

