<?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: Pick colours for certain value in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294908#M35233</link>
    <description>&lt;P&gt;Hi Christian. De fill is overwritten by another CSS. Try to use fill: rgb(255,0,0) !important;&lt;BR /&gt;
Add !important.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 14:03:35 GMT</pubDate>
    <dc:creator>cmeerbeek</dc:creator>
    <dc:date>2017-07-07T14:03:35Z</dc:date>
    <item>
      <title>Pick colours for certain value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294905#M35230</link>
      <description>&lt;P&gt;I use the timeline app to visualize the state of process running over time.&lt;BR /&gt;
If the process is not running I want to show a red bar and if it is running I want to use a green bar.&lt;/P&gt;

&lt;P&gt;The query works fine, look at attched screenshot. &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/3164i6FF7CDF739958E32/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
The data is also fine...other screenshot. &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/3165iC3BA3D46F58F1544/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;How can I make sure that Running is green and Not Running is red?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294905#M35230</guid>
      <dc:creator>cmeerbeek</dc:creator>
      <dc:date>2017-07-04T12:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pick colours for certain value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294906#M35231</link>
      <description>&lt;P&gt;Custom Visualizations do not allow defining sequential category colors through UI or Simple XML. You would need to override the same through colors CSS. &lt;CODE&gt;.ccat-&amp;lt;fieldName&amp;gt;&lt;/CODE&gt; is the class name created for SVG ( for example &lt;STRONG&gt;ccat-Running&lt;/STRONG&gt;). Field Name containing spaces will result in two CSS class names (for example &lt;STRONG&gt;.ccat-Not.running&lt;/STRONG&gt;). I have created a simple CSS however, it would be better you customize CSS selector as per your needs and do not override any of other default CSS selector.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;html&amp;gt;
    &amp;lt;style&amp;gt;
      .ccat-Not.running{
        fill: rgb(255,0,0);
        stroke:  rgb(255,0,0);
      }
      .ccat-Running{
        fill: rgb(0,255,0);
        stroke: rgb(0,255,0);
      }  
    &amp;lt;/style&amp;gt;        
  &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&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/3163iAB84C9F89CCD8F88/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>Tue, 04 Jul 2017 14:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294906#M35231</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-04T14:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pick colours for certain value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294907#M35232</link>
      <description>&lt;P&gt;I'am having the same issue. But the fill option is ignored. The stroke color works perfect but not the fill. &lt;BR /&gt;
It still takes the element.style fill color. Any Idea ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294907#M35232</guid>
      <dc:creator>christianhuber</dc:creator>
      <dc:date>2017-07-07T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pick colours for certain value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294908#M35233</link>
      <description>&lt;P&gt;Hi Christian. De fill is overwritten by another CSS. Try to use fill: rgb(255,0,0) !important;&lt;BR /&gt;
Add !important.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294908#M35233</guid>
      <dc:creator>cmeerbeek</dc:creator>
      <dc:date>2017-07-07T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pick colours for certain value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294909#M35234</link>
      <description>&lt;P&gt;okay I solved the problem by using the following code, unser if this what you should to in css. But it worked for me.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;html&amp;gt;
     &amp;lt;style&amp;gt;
       .ccat-Not.running{
         fill: rgb(255,0,0) !important;
         stroke:  rgb(255,0,0);
       }
       .ccat-Running{
         fill: rgb(0,255,0) !important;
         stroke: rgb(0,255,0);
       }  
     &amp;lt;/style&amp;gt;        
   &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294909#M35234</guid>
      <dc:creator>christianhuber</dc:creator>
      <dc:date>2017-07-07T14:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pick colours for certain value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294910#M35235</link>
      <description>&lt;P&gt;thank you. my post bellow was submitted at the same time. This worked for me.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Pick-colours-for-certain-value/m-p/294910#M35235</guid>
      <dc:creator>christianhuber</dc:creator>
      <dc:date>2017-07-07T14:09:14Z</dc:date>
    </item>
  </channel>
</rss>

