<?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: pie chart color with eval condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/pie-chart-color-with-eval-condition/m-p/226285#M66711</link>
    <description>&lt;P&gt;You will need to save it as a dashboard panel first of all. Once there, you can edit the charting options to define the colors.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Viz/Chartcustomization#Chart_colors"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Viz/Chartcustomization#Chart_colors&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may also want to use rangemap to break down the days into the sizes you want. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rangemap"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rangemap&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ive only ever done rangemap inline, so something similar to this. You're going probably going to have to tweak this to make it work. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=level3 host=Test |rangemap AgeRange=count(Age) Under_3=0-3 4to7=4-7 Over=8-9999| chart count by AgeRange 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Sep 2016 13:54:18 GMT</pubDate>
    <dc:creator>JDukeSplunk</dc:creator>
    <dc:date>2016-09-30T13:54:18Z</dc:date>
    <item>
      <title>pie chart color with eval condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pie-chart-color-with-eval-condition/m-p/226284#M66710</link>
      <description>&lt;P&gt;Am using query "index=level3 host=Test | stats count by Age | sort Age" and visualizing it in a pie chart. &lt;/P&gt;

&lt;P&gt;Now my requirement is I want to put some condition and color code it accordingly and show the result as in figure: Age&lt;BR /&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/1951i7CF48708054C37BA/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;what query should I use and what xml editing should I do . &lt;/P&gt;

&lt;P&gt;Currently using the query am getting result as shown in Fig: res&lt;BR /&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/1952i50E25EBD1E4469E5/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>Fri, 30 Sep 2016 13:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pie-chart-color-with-eval-condition/m-p/226284#M66710</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2016-09-30T13:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: pie chart color with eval condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pie-chart-color-with-eval-condition/m-p/226285#M66711</link>
      <description>&lt;P&gt;You will need to save it as a dashboard panel first of all. Once there, you can edit the charting options to define the colors.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Viz/Chartcustomization#Chart_colors"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Viz/Chartcustomization#Chart_colors&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may also want to use rangemap to break down the days into the sizes you want. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rangemap"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rangemap&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ive only ever done rangemap inline, so something similar to this. You're going probably going to have to tweak this to make it work. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=level3 host=Test |rangemap AgeRange=count(Age) Under_3=0-3 4to7=4-7 Over=8-9999| chart count by AgeRange 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2016 13:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pie-chart-color-with-eval-condition/m-p/226285#M66711</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2016-09-30T13:54:18Z</dc:date>
    </item>
  </channel>
</rss>

