<?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: Color coding for values by rows in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436696#M28818</link>
    <description>&lt;P&gt;Hi @pyro_wood, This did not solve my problem!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2018 11:58:22 GMT</pubDate>
    <dc:creator>bharathkumarnec</dc:creator>
    <dc:date>2018-09-19T11:58:22Z</dc:date>
    <item>
      <title>Color coding for values by rows</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436693#M28815</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have two to three rows, something like below:&lt;/P&gt;

&lt;P&gt;ABC 98 97 67&lt;BR /&gt;
DEF 50 45 23&lt;BR /&gt;
GHI 3 2 1&lt;/P&gt;

&lt;P&gt;three rows of a table is as shown above.&lt;/P&gt;

&lt;P&gt;Now i need to apply three color codings to each row based on ranges.&lt;/P&gt;

&lt;P&gt;For example: First Row --&amp;gt; &amp;gt;90 Green 80 to 90 Yellow &amp;amp; &amp;lt;80 red&lt;BR /&gt;
Second row &amp;gt; 45 Green 30 to 45 Yellow &amp;lt;30 red&lt;BR /&gt;
Third row &amp;gt;3 Green 2 to 3 Yellow &amp;lt;1 red&lt;/P&gt;

&lt;P&gt;Kindly provide an easiest way to achieve this.&lt;/P&gt;

&lt;P&gt;TIA &lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
BK&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 20:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436693#M28815</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-08-30T20:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Color coding for values by rows</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436694#M28816</link>
      <description>&lt;P&gt;Hi @harathkumarnec, &lt;/P&gt;

&lt;P&gt;there is a wonderful dashboarding app out there on splunkbase.splunk.com that helps you with coloring field values based on ranges.&lt;BR /&gt;
I'm talking about the Splunk App "Dashboard Examples"&lt;/P&gt;

&lt;P&gt;If you are able to install that on your system you should do, because it gives you all the configuration you need.&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;FANCY:&lt;/STRONG&gt;&lt;BR /&gt;
When you installed it open it up and scroll down to one of the examples that is named "Table Cell Highlighting" or "Table Row Highlighting"&lt;/P&gt;

&lt;P&gt;It's the fancy stuff with JS and CSS. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SIMPLE:&lt;/STRONG&gt;&lt;BR /&gt;
If you want &lt;STRONG&gt;SIMPLE&lt;/STRONG&gt; and not particularly fancy you can also try out this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Table Formats&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Format columns using built-in table formats (coloring, number formatting).&amp;lt;/description&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            index=_internal | stats count by sourcetype
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;format type="color" field="sourcetype"&amp;gt;
          &amp;lt;colorPalette type="sharedList"&amp;gt;&amp;lt;/colorPalette&amp;gt;
          &amp;lt;scale type="category"&amp;gt;&amp;lt;/scale&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="count"&amp;gt;
          &amp;lt;colorPalette type="minMidMax" maxColor="#31A35F" minColor="#FFFFFF"&amp;gt;&amp;lt;/colorPalette&amp;gt;
          &amp;lt;scale type="minMidMax"&amp;gt;&amp;lt;/scale&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;"sourcetype" column is using automatic color setting based on cell values.&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;"count" column is using scaled color with preset color palette.&amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            index=_internal | stats count by sourcetype
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;format type="color" field="sourcetype"&amp;gt;
          &amp;lt;colorPalette type="map"&amp;gt;{"splunkd":#F7BC38,"scheduler":#6A5C9E}&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="count"&amp;gt;
          &amp;lt;colorPalette type="list"&amp;gt;[#65A637,#6DB7C6,#F7BC38,#F58F39,#D93F3C]&amp;lt;/colorPalette&amp;gt;
          &amp;lt;scale type="threshold"&amp;gt;0,30,70,100&amp;lt;/scale&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;"sourcetype" column is using custom defined colors based on individual cell values.&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;"count" column is using custom defined colors based on cell value ranges.&amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            | inputlookup splunk-stock.csv
            | fields date, volume
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;format type="number" field="volume"&amp;gt;
          &amp;lt;option name="precision"&amp;gt;0&amp;lt;/option&amp;gt;
          &amp;lt;option name="useThousandSeparators"&amp;gt;true&amp;lt;/option&amp;gt;
          &amp;lt;option name="unit"&amp;gt;$&amp;lt;/option&amp;gt;
          &amp;lt;option name="unitPosition"&amp;gt;before&amp;lt;/option&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;"volume" column is using number formatting including: precision, thousand separator, unit. &amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 20:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436694#M28816</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2018-08-30T20:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Color coding for values by rows</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436695#M28817</link>
      <description>&lt;P&gt;hi @bharathkumarnec ,&lt;/P&gt;

&lt;P&gt;Did @pyro_wood 's answer  solve your problem? If so, please resolve this post by approving one of them. If not, keep us updated so that someone else can help solve your problem.&lt;/P&gt;

&lt;P&gt;Also, if you're feeling generous, give out an upvote to the user that helped ya. Our users love them upvotes. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 22:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436695#M28817</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-31T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Color coding for values by rows</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436696#M28818</link>
      <description>&lt;P&gt;Hi @pyro_wood, This did not solve my problem!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 11:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436696#M28818</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-09-19T11:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Color coding for values by rows</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436697#M28819</link>
      <description>&lt;P&gt;Hi @Pyro_wood,&lt;/P&gt;

&lt;P&gt;Context X   Y   Z&lt;BR /&gt;
ABC 98  97  67&lt;BR /&gt;
DEF 50  45  23&lt;BR /&gt;
GHI 3   2   1&lt;/P&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>Wed, 19 Sep 2018 12:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-coding-for-values-by-rows/m-p/436697#M28819</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-09-19T12:01:58Z</dc:date>
    </item>
  </channel>
</rss>

