<?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: How to make Pie chart display even if the returned value is zero? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115525#M30621</link>
    <description>&lt;P&gt;Rob...With only count i am getting coloured pie chart...&lt;/P&gt;

&lt;P&gt;But i want for Status with respective msgcount in full colored pie chart..&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2015 22:16:21 GMT</pubDate>
    <dc:creator>priyansplunk</dc:creator>
    <dc:date>2015-03-25T22:16:21Z</dc:date>
    <item>
      <title>How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115519#M30615</link>
      <description>&lt;P&gt;i want to display full green piechart when my total count is 0. And full yellow when my total count &amp;gt; 0 and &amp;lt;5 &lt;BR /&gt;
and Full red when totalcount &amp;gt;5.&lt;/P&gt;

&lt;P&gt;I am getting the respective colour for Yellow and Red...but Green is not coming as the value is 0 and percentage covered is 0%??...&lt;/P&gt;

&lt;P&gt;Any suggestion to make that display even if the value is zero?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:24:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115519#M30615</guid>
      <dc:creator>priyansplunk</dc:creator>
      <dc:date>2015-03-25T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115520#M30616</link>
      <description>&lt;P&gt;Try setting this value to 0 which is no collapsing in the xml for the chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/ChartConfigurationReference#Pie_charts"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/ChartConfigurationReference#Pie_charts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115520#M30616</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-25T18:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115521#M30617</link>
      <description>&lt;P&gt;Tried that ....its not coming &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115521#M30617</guid>
      <dc:creator>priyansplunk</dc:creator>
      <dc:date>2015-03-25T18:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115522#M30618</link>
      <description>&lt;P&gt;recommend pasting your search/relevant xml&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 19:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115522#M30618</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-25T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115523#M30619</link>
      <description>&lt;P&gt;My Query-sourcetype="source1"  "queue.1" OR "queue.2" OR "queue.2" | spath output=queueName path=qInfo.qName|spath output=pendingMsgCount path=qInfo.pendingMsgCount|dedup queueName|stats sum(pendingMsgCount) AS PendingMsgCount by _time queueName|&lt;BR /&gt;
 stats sum(PendingMsgCount) as Totalcount | eval Status=case(Totalcount=0, "Fine", Totalcount&amp;gt;=1 AND Totalcount&amp;lt;=10, "Warning", Totalcount&amp;gt;10, "Critical") |chart values(Totalcount) AS TotalCount by Status&lt;/P&gt;

&lt;P&gt;Output&lt;BR /&gt;
Status=Fine,TotalCount=0...I want the Full pie chart to be Green colour for this status or Total Count&lt;/P&gt;

&lt;P&gt;If  Status=Warning,TotalCount&amp;gt;0 and &amp;lt;5-Full Pie chart yellow..like wise...&lt;/P&gt;

&lt;P&gt;Piechart should display the TotalCount too with respective colour.&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 20:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115523#M30619</guid>
      <dc:creator>priyansplunk</dc:creator>
      <dc:date>2015-03-25T20:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115524#M30620</link>
      <description>&lt;P&gt;Note: There may be multiple ways to do this.&lt;BR /&gt;
Here are some similar searches I have working using the range command to group into ranges.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some search | rangemap field=WaitTime 30=0-30 60=31-60 90=61-90 120=91-120 180=121-180 210=181-210 240=211-240 270=241-270 300=271-300 600=301-600 &amp;gt;600=601-10000 | stats count by range


sourcetype=jira_access | rex \s\d{3}\s\d(\d+)?\s(?\d(\d+)?)\s | eval jira_response_time=round((jira_response_time/1000),1) | search jira_response_time=* | rangemap field=jira_response_time "Meets SLA"=0-5 "Exceeds SLA"=5-1000000 | stats count by range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the second example, I have the following xml to color red, green. You could probably add your own colors.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;option name="charting.fieldColors"&amp;gt;{"Meets SLA":0x008000,"Exceeds SLA":0xFF0000}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115524#M30620</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-25T21:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115525#M30621</link>
      <description>&lt;P&gt;Rob...With only count i am getting coloured pie chart...&lt;/P&gt;

&lt;P&gt;But i want for Status with respective msgcount in full colored pie chart..&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 22:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115525#M30621</guid>
      <dc:creator>priyansplunk</dc:creator>
      <dc:date>2015-03-25T22:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115526#M30622</link>
      <description>&lt;P&gt;seems you would want something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by Status

and then use the charting option for the color coding

&amp;lt;option name="charting.fieldColors"&amp;gt;{"Fine":0x008000,"Warning":0xFFFF00},"Critical":0xAC0030}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I might be overlooking something.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 00:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115526#M30622</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-26T00:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115527#M30623</link>
      <description>&lt;P&gt;Thanks  Rob.It seems difficult to get the Full green Pie chart without using count.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 14:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115527#M30623</guid>
      <dc:creator>priyansplunk</dc:creator>
      <dc:date>2015-03-26T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Pie chart display even if the returned value is zero?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115528#M30624</link>
      <description>&lt;P&gt;Possibly someone else may have another idea. You could also try using a gauge.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-Pie-chart-display-even-if-the-returned-value-is-zero/m-p/115528#M30624</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-26T16:12:42Z</dc:date>
    </item>
  </channel>
</rss>

