<?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 do you apply coloring based on a column value string to the complete row? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390558#M113743</link>
    <description>&lt;P&gt;@bharathkumarnec adding more context to your question would assist us solve your problem.&lt;/P&gt;

&lt;P&gt;If ABC, DEF, GHI etc. give the context for color to be applied what is the set of color to be applied for each?&lt;BR /&gt;
If the number of columns X, Y and Z is not limited then would there be a scenario when you do not have actual color to be applied?&lt;BR /&gt;
Can the same color from one series be applied to another series?&lt;/P&gt;

&lt;P&gt;I would hope your option would be to use Simple XML JS Extension, whose complexity would be based on how you want to apply colors based on context.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 13:57:47 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-10-18T13:57:47Z</dc:date>
    <item>
      <title>How do you apply coloring based on a column value string to the complete row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390556#M113741</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Context X Y Z
ABC 98 97 67
DEF 50 45 23
GHI 3 2 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, if Context is ABC, i have to apply color coding for X,Y,Z &amp;amp; if the context is DEF, another color coding need to be applied and so on.....&lt;/P&gt;

&lt;P&gt;Also the X,Y&amp;amp;Z are not only three columns. i have "n" number of columns like that and sometimes these are dynamic and not static.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
BK&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 08:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390556#M113741</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-09-24T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you apply coloring based on a column value string to the complete row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390557#M113742</link>
      <description>&lt;P&gt;Although I cannot actually answer this question (and am not sure that it is possible with vanilla SimpleXML), I will contribute this helper non-answer for you and other potential answerers (that means you, @niketnilay).  You can use this code to generate raw data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| fields - _time
| eval XYZ="X Y Z"
| makemv XYZ
| mvexpand XYZ
| eval Context=mvrange(1,tonumber(case(XYZ=="X", "98", XYZ=="Y", "97", XYZ=="Z", "67")) + 1)
| mvexpand Context
| eval Context="ABC"
| append [
| makeresults 
| fields - _time
| eval XYZ="X Y Z"
| makemv XYZ
| mvexpand XYZ
| eval Context=mvrange(1,tonumber(case(XYZ=="X", "50", XYZ=="Y", "45", XYZ=="Z", "23")) + 1)
| mvexpand Context
| eval Context="DEF" ]
| append [
| makeresults 
| fields - _time
| eval XYZ="X Y Z"
| makemv XYZ
| mvexpand XYZ
| eval Context=mvrange(1,tonumber(case(XYZ=="X", "3", XYZ=="Y", "2", XYZ=="Z", "1")) + 1)
| mvexpand Context
| eval Context="GHI" ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now look here, @bharathkumarnec, this pertains to you.  You can build a &lt;CODE&gt;contingency table&lt;/CODE&gt; out of this raw data with a single command by adding this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| contingency Context XYZ
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you clever answerers have a starting point go answer this question!&lt;/P&gt;

&lt;P&gt;One of the visualizations that is interesting for contingency tables is a stacked bar graph so please check out how that looks and if that is useful to you.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 17:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390557#M113742</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-10-06T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you apply coloring based on a column value string to the complete row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390558#M113743</link>
      <description>&lt;P&gt;@bharathkumarnec adding more context to your question would assist us solve your problem.&lt;/P&gt;

&lt;P&gt;If ABC, DEF, GHI etc. give the context for color to be applied what is the set of color to be applied for each?&lt;BR /&gt;
If the number of columns X, Y and Z is not limited then would there be a scenario when you do not have actual color to be applied?&lt;BR /&gt;
Can the same color from one series be applied to another series?&lt;/P&gt;

&lt;P&gt;I would hope your option would be to use Simple XML JS Extension, whose complexity would be based on how you want to apply colors based on context.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 13:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-apply-coloring-based-on-a-column-value-string-to-the/m-p/390558#M113743</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-18T13:57:47Z</dc:date>
    </item>
  </channel>
</rss>

