<?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: colour format in chart based on the list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193892#M55885</link>
    <description>&lt;P&gt;thanks for the response but we can use the above if we know what is the expected value but in my case i dont know what is the latest date in the list&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2014 12:52:24 GMT</pubDate>
    <dc:creator>iamniks</dc:creator>
    <dc:date>2014-08-25T12:52:24Z</dc:date>
    <item>
      <title>colour format in chart based on the list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193890#M55883</link>
      <description>&lt;P&gt;Hi, I have a table&lt;/P&gt;

&lt;P&gt;DATE                                    AMOUNT&lt;BR /&gt;
07/22/2014                              1000&lt;BR /&gt;
07/23/2014                              2000&lt;BR /&gt;
08/01/2014                              500&lt;/P&gt;

&lt;P&gt;and so on.&lt;/P&gt;

&lt;P&gt;I have to get a bar chart of decreasing amount and date. which is easy. Now  i have to represent the latest date in that chart in a different colour. Is that possible&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193890#M55883</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2014-08-25T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: colour format in chart based on the list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193891#M55884</link>
      <description>&lt;P&gt;Hi iamniks,&lt;/P&gt;

&lt;P&gt;Yes, you can do this - but you need to tweak some css and js files to achieve this. See this &lt;A href="http://answers.splunk.com/answers/83206/color-in-a-table-based-on-values"&gt;http://answers.splunk.com/answers/83206/color-in-a-table-based-on-values&lt;/A&gt; or this app &lt;A href="http://apps.splunk.com/app/570/"&gt;http://apps.splunk.com/app/570/&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193891#M55884</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-08-25T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: colour format in chart based on the list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193892#M55885</link>
      <description>&lt;P&gt;thanks for the response but we can use the above if we know what is the expected value but in my case i dont know what is the latest date in the list&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193892#M55885</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2014-08-25T12:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: colour format in chart based on the list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193893#M55886</link>
      <description>&lt;P&gt;How many rows can be there in the table?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193893#M55886</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-25T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: colour format in chart based on the list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193894#M55887</link>
      <description>&lt;P&gt;many. it will keep updating the list on when a transaction happens on that date. so i need a query to find the latest date in the list at any point in time&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 12:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193894#M55887</guid>
      <dc:creator>iamniks</dc:creator>
      <dc:date>2014-08-25T12:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: colour format in chart based on the list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193895#M55888</link>
      <description>&lt;P&gt;Give this a try. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your search giving fields DATE, AMOUNT | eval LATEST=strptime(DATE,"%m/%d/%Y") 
| eventstats max(LATEST) as LATEST1 | eval LATESTAMT=if(LATEST=LATEST1,AMOUNT,0) | eval AMOUNT=if(LATEST=LATEST1,0,AMOUNT)| table DATE, AMOUNT, LATESTAMT 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use this to generate a stacked bar chart and for the latest record it should show in different color (with different series name 'LATESTAMT')&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/colour-format-in-chart-based-on-the-list/m-p/193895#M55888</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-25T13:22:27Z</dc:date>
    </item>
  </channel>
</rss>

