<?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 Simple xml table - Colorize the Total line in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145499#M8826</link>
    <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I would like to able to colorize the "TOTAL" line in simple xml tables as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table&amp;gt;
  &amp;lt;searchString&amp;gt;MYSEARCH | addcoltotals labelfield="myfield" label=TOTAL&amp;lt;/searchString&amp;gt;
  &amp;lt;earliestTime&amp;gt;$earliest$&amp;lt;/earliestTime&amp;gt;
  &amp;lt;latestTime&amp;gt;$latest$&amp;lt;/latestTime&amp;gt;
  &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
  &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
  &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
  &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
  &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The addcoltotals will add a line called TOTAL at the end of my table, i would like to floddlight this line with a specific color, is there a way to achieve it ? Using css maybe ?&lt;/P&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2014 08:28:34 GMT</pubDate>
    <dc:creator>guilmxm</dc:creator>
    <dc:date>2014-02-11T08:28:34Z</dc:date>
    <item>
      <title>Simple xml table - Colorize the Total line</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145499#M8826</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I would like to able to colorize the "TOTAL" line in simple xml tables as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table&amp;gt;
  &amp;lt;searchString&amp;gt;MYSEARCH | addcoltotals labelfield="myfield" label=TOTAL&amp;lt;/searchString&amp;gt;
  &amp;lt;earliestTime&amp;gt;$earliest$&amp;lt;/earliestTime&amp;gt;
  &amp;lt;latestTime&amp;gt;$latest$&amp;lt;/latestTime&amp;gt;
  &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
  &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
  &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
  &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
  &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The addcoltotals will add a line called TOTAL at the end of my table, i would like to floddlight this line with a specific color, is there a way to achieve it ? Using css maybe ?&lt;/P&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 08:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145499#M8826</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-02-11T08:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple xml table - Colorize the Total line</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145500#M8827</link>
      <description>&lt;P&gt;You could define CSS something like this (untested):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#your-table-id tr:last-child {
  background-color: #123456;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The idea is as follows: Locate your table based on its id, descend into the last tr element, and colour that appropriately. A word of warning for corporate environments, older versions of IE don't support these CSS3 pseudo-classes.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 20:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145500#M8827</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-11T20:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple xml table - Colorize the Total line</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145501#M8828</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Many thanks for your answer.&lt;/P&gt;

&lt;P&gt;Indeed i think this is the solution, however something inherited by an other css file seems to prevent it to work as for now. (even with important statement within the css)&lt;/P&gt;

&lt;P&gt;Still working on it and will revert&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 07:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145501#M8828</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-02-12T07:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple xml table - Colorize the Total line</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145502#M8829</link>
      <description>&lt;P&gt;please try the below code:&lt;/P&gt;

&lt;P&gt;abc.css&lt;/P&gt;

&lt;P&gt;"#id_of_table tr:nth-last-child(1) td {&lt;BR /&gt;
    background: #6DB7C6;&lt;BR /&gt;
     color: black;&lt;BR /&gt;
 }&lt;/P&gt;

&lt;P&gt;add the "abc.css" in your dashboard or form using stylesheet tag.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145502#M8829</guid>
      <dc:creator>simon21</dc:creator>
      <dc:date>2020-09-29T12:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Simple xml table - Colorize the Total line</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145503#M8830</link>
      <description>&lt;P&gt;please try the below code:&lt;/P&gt;

&lt;P&gt;abc.css&lt;/P&gt;

&lt;P&gt;"#id_of_table tr:nth-last-child(1) td {&lt;BR /&gt;
background: #6DB7C6;&lt;BR /&gt;
color: black;&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;add the "abc.css" in your dashboard or form using stylesheet tag.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145503#M8830</guid>
      <dc:creator>simon21</dc:creator>
      <dc:date>2020-09-29T12:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple xml table - Colorize the Total line</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145504#M8831</link>
      <description>&lt;P&gt;Hi guilmxm,&lt;BR /&gt;
I suggest to download and install the Splunk 6.x Dashboard Examples App (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) in which you can find an example to color all the TOTAL Row or the Total Cell.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 09:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Simple-xml-table-Colorize-the-Total-line/m-p/145504#M8831</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-16T09:40:07Z</dc:date>
    </item>
  </channel>
</rss>

