<?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: Updating Color for tables in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548427#M37765</link>
    <description>&lt;P&gt;A similar question was answered&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545683#M154625" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;- depending on which version of splunk you are using, the html may or may not need an empty div - also, this solution was to colour pairs of columns, so you would need to adjust it for just 2n+0 and 2n+1&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 13:32:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-04-19T13:32:50Z</dc:date>
    <item>
      <title>Updating Color for tables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548423#M37764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I add colors to the table based on the search below? I wanted to have a alternating colors to make the view better.&lt;/P&gt;&lt;P&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index=index1 sourcetype=sourcetype1 ACCOUNT_CODE!=ACCOUNT_CODE | multikv forceheader=1 | dedup ACCOUNT_CODE Application BusinessUnit | table ACCOUNT_CODE Application BusinessUnit ApplicationRTO | chart values(Application) as Application by BusinessUnit&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="wrap"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;link target="_blank"&amp;gt;/app/mainframe-platform/average_mips_per_application_bu?BusinessUnit=$click.value$&amp;lt;/link&amp;gt;&lt;BR /&gt;&amp;lt;/drilldown&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548423#M37764</guid>
      <dc:creator>aquinojason</dc:creator>
      <dc:date>2021-04-19T13:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Color for tables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548427#M37765</link>
      <description>&lt;P&gt;A similar question was answered&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545683#M154625" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;- depending on which version of splunk you are using, the html may or may not need an empty div - also, this solution was to colour pairs of columns, so you would need to adjust it for just 2n+0 and 2n+1&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548427#M37765</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-19T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Color for tables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548441#M37766</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the great assistance. We are currently on build 7.3. I wanted to update the look of the table like the font and color so that users would be able to see it better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aquinojason_0-1618842150623.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13839i3EF9749FC4A280D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aquinojason_0-1618842150623.png" alt="aquinojason_0-1618842150623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548441#M37766</guid>
      <dc:creator>aquinojason</dc:creator>
      <dc:date>2021-04-19T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Color for tables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548448#M37767</link>
      <description>&lt;P&gt;For version 7, the empty &amp;lt;div/&amp;gt; is important so that the style sheet gets passed through. This doesn't appear to be needed in version 8.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div/&amp;gt;
        &amp;lt;style&amp;gt;
          div[id^="tableAlternateColours"] th:nth-child(2n+0){
            background: #cccc00 !important;
            border-right: 0;
            color: white !important;
          }
          div[id^="tableAlternateColours"] td:nth-child(2n+0){
            background: #ffff00 !important;
          }
          div[id^="tableAlternateColours"] th:nth-child(2n+1){
            background: #cc0000 !important;
            border-right: 0;
            color: white !important;
          }
          div[id^="tableAlternateColours"] td:nth-child(2n+1){
            background: #ff0000 !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="tableAlternateColours"&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Updating-Color-for-tables/m-p/548448#M37767</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-19T14:45:14Z</dc:date>
    </item>
  </channel>
</rss>

