<?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 Is there an easy way to change the color of a non numeric 'single value' visualization? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262396#M16527</link>
    <description>&lt;P&gt;I am working on creating a dashboard of my home status that looks like the graphic attached.  Ideally I would like to have a green background around the word 'Secure' and a red background around the word 'Open'.  It seems like the single value type is designed to change colors based on numeric values.  Is there an easy way to make it change based on some text or other condition?&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1177iDB7CD748282F1390/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Mar 2016 18:40:35 GMT</pubDate>
    <dc:creator>rvoninski_splun</dc:creator>
    <dc:date>2016-03-27T18:40:35Z</dc:date>
    <item>
      <title>Is there an easy way to change the color of a non numeric 'single value' visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262396#M16527</link>
      <description>&lt;P&gt;I am working on creating a dashboard of my home status that looks like the graphic attached.  Ideally I would like to have a green background around the word 'Secure' and a red background around the word 'Open'.  It seems like the single value type is designed to change colors based on numeric values.  Is there an easy way to make it change based on some text or other condition?&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1177iDB7CD748282F1390/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 18:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262396#M16527</guid>
      <dc:creator>rvoninski_splun</dc:creator>
      <dc:date>2016-03-27T18:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to change the color of a non numeric 'single value' visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262397#M16528</link>
      <description>&lt;P&gt;Look at the Splunk 6.x Dashboard Example app for different customization's available &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;Something like this would work for your case (run anywhere sample) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Custom Color&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| gentimes start=-1 | eval Result="Secure" | table Result | eval range=if(Result="Secure","low","severe")&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/single&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| gentimes start=-1 | eval Result="Open" | table Result | eval range=if(Result="Secure","low","severe")&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;        
      &amp;lt;/single&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>Sun, 27 Mar 2016 22:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262397#M16528</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-27T22:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to change the color of a non numeric 'single value' visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262398#M16529</link>
      <description>&lt;P&gt;Works like a champion!!  I looked over the dashbaord examples but didnt catch that snippet of code.  So easy once you see how this works.  Thank you again. &lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 23:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-easy-way-to-change-the-color-of-a-non-numeric-single/m-p/262398#M16529</guid>
      <dc:creator>rvoninski_splun</dc:creator>
      <dc:date>2016-03-27T23:31:11Z</dc:date>
    </item>
  </channel>
</rss>

