<?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: Highlight Table cell without Javascript in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561708#M46182</link>
    <description>&lt;P&gt;This can be done with CSS which you can define in your SimpleXML in a html panel. Essentially, what you need to do is to turn column B into a multi-value field with an indicator for the format option to pick up and change the background colour. You then use CSS to hide (display: none) the second value in the multi-value field. You can also hide column A in this way too. See this answer (and similar) for clues&amp;nbsp;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-color-the-columns-based-on-previous-column-value/m-p/538879/highlight/true#M152390" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-color-the-columns-based-on-previous-column-value/m-p/538879/highlight/true#M152390&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 14:33:09 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-08-02T14:33:09Z</dc:date>
    <item>
      <title>Highlight Table cell without Javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561695#M46179</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; &amp;nbsp; &amp;nbsp;Wondering if someone has found a similar solution?&lt;/P&gt;&lt;P&gt;I don't have admin rights so I don't have the ability to load js/css files to the splunk server so it all has to be within local XML code.&lt;/P&gt;&lt;P&gt;Here's a simple breakdown of what I'd like my table on the dashboard to do:&lt;/P&gt;&lt;P&gt;query | table A, B, C, D, E&lt;/P&gt;&lt;P&gt;When column A has the string value of "problem" I want to highlight the background of column B to red otherwise Column A remains default background color.&amp;nbsp; &amp;nbsp;And I need to hide column A from the end user.&lt;/P&gt;&lt;P&gt;I found many posts (including the 2 below) but after a couple of days, no luck in finding the correct logic..&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-highlight-a-table-cell-based-on-a-field-of-the-search/m-p/455645" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-highlight-a-table-cell-based-on-a-field-of-the-search/m-p/455645&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML#Color_palette_types_and_options" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML#Color_palette_types_and_options&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 13:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561695#M46179</guid>
      <dc:creator>AdrianH</dc:creator>
      <dc:date>2021-08-02T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Table cell without Javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561697#M46180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236767"&gt;@AdrianH&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry but it's not possible without js/css!&lt;/P&gt;&lt;P&gt;The only thing that you can do in Simple XML is use colors related to values.&lt;/P&gt;&lt;P&gt;In other words, when you create a table and open it in Edit Mode, you have a pen icon on each colum, you can choos the colors to use when there a value.&lt;/P&gt;&lt;P&gt;In this way you can highlight with colors a cell, not a column or a row.&lt;/P&gt;&lt;P&gt;for more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Viz/TableFormatsFormatting" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Viz/TableFormatsFormatting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 13:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561697#M46180</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-08-02T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Table cell without Javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561708#M46182</link>
      <description>&lt;P&gt;This can be done with CSS which you can define in your SimpleXML in a html panel. Essentially, what you need to do is to turn column B into a multi-value field with an indicator for the format option to pick up and change the background colour. You then use CSS to hide (display: none) the second value in the multi-value field. You can also hide column A in this way too. See this answer (and similar) for clues&amp;nbsp;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-color-the-columns-based-on-previous-column-value/m-p/538879/highlight/true#M152390" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-color-the-columns-based-on-previous-column-value/m-p/538879/highlight/true#M152390&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 14:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561708#M46182</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-02T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Table cell without Javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561735#M46187</link>
      <description>&lt;P&gt;This worked!&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen the mv referenced on other posts trying to do this same thing but it never made sense.&amp;nbsp; But after reading your post here + reading more about mvs in splunk, it made a bit more sense.&amp;nbsp; &amp;nbsp;Plus several tries!&lt;/P&gt;&lt;P&gt;I've used Tableau for years, so trying to setup this conditional formatting is much easier to do than Splunk.&amp;nbsp; &amp;nbsp;I like Splunk but there is definitely a learning curve.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 17:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-Table-cell-without-Javascript/m-p/561735#M46187</guid>
      <dc:creator>AdrianH</dc:creator>
      <dc:date>2021-08-02T17:58:34Z</dc:date>
    </item>
  </channel>
</rss>

