<?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: Only show percentages when using pie chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328000#M97629</link>
    <description>&lt;P&gt;@bharathkumarnec, can you please provide what is the query you have right now?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 10:42:38 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-01-29T10:42:38Z</dc:date>
    <item>
      <title>Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327996#M97625</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;My requirement is to display only percentages in the pie chart not the label names.&lt;/P&gt;

&lt;P&gt;I tried below two options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.showPercent"&amp;gt;true&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.showLabels"&amp;gt;false&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but they are not working as expected.&lt;/P&gt;

&lt;P&gt;Kindly help me out if there is any work around?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
BK&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327996#M97625</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-01-26T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327997#M97626</link>
      <description>&lt;P&gt;hey &lt;BR /&gt;
It will show only when &lt;CODE&gt;showlabels&lt;/CODE&gt; is enabled.&lt;BR /&gt;
have a look at this doc&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Viz/ChartConfigurationReference#Pie_charts"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Viz/ChartConfigurationReference#Pie_charts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;but i must say this is totally possible using search query!&lt;BR /&gt;
try this run anywhere search and look visualization as pie chart&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats count by log_level | eventstats sum(count) as total | eval count=round(100*count/total,2) |fields- total | eval log_level="".count."%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and set this parameters in XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.showPercent"&amp;gt;false&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.chart.showLabels"&amp;gt;true&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 14:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327997#M97626</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-26T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327998#M97627</link>
      <description>&lt;P&gt;I have given you a work around pls check and let me know!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 15:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327998#M97627</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-26T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327999#M97628</link>
      <description>&lt;P&gt;Thanks for the information @mayurr98&lt;/P&gt;

&lt;P&gt;This i have tried  but could not help me in getting my actual requirement.&lt;/P&gt;

&lt;P&gt;Single column with values will not display anything in the pie chart, pie chart is showing values or percentages with field names.&lt;/P&gt;

&lt;P&gt;But in my case i dont need field names just a value from the column.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
BK&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 10:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/327999#M97628</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-01-29T10:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328000#M97629</link>
      <description>&lt;P&gt;@bharathkumarnec, can you please provide what is the query you have right now?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 10:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328000#M97629</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-29T10:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328001#M97630</link>
      <description>&lt;P&gt;give me your search query.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 10:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328001#M97630</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-29T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328002#M97631</link>
      <description>&lt;P&gt;@bharathkumarnec, if you do not have percent field in your existing stats then you will have to calculate the same. As the final pipe of your search you should perform an eval for your label field and assign value of the percent field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval &amp;lt;yourLabelField&amp;gt;= &amp;lt;yourPercentField&amp;gt;." %"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere example based on Splunk's _internal index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level=*
| stats count by log_level
| eventstats sum(count) as total 
| eval perc=round((count/total)*100,1)
| eval log_level=perc." %"
| fields - total perc
&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/4210i23F436C5DB74E9DF/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>Mon, 29 Jan 2018 10:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328002#M97631</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-29T10:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328003#M97632</link>
      <description>&lt;P&gt;@mayurr98, sorry it is working fine..i missed something and have corrected it. Thanks a lot for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328003#M97632</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-01-29T20:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328004#M97633</link>
      <description>&lt;P&gt;@niketnilay,  Thanks a lot for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328004#M97633</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-01-29T20:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Only show percentages when using pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328005#M97634</link>
      <description>&lt;P&gt;@niketnilay,&lt;/P&gt;

&lt;P&gt;Is there a way that i can use the same colors of the pie chart percentages and labels those are separately written beside pie chart using html?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
BK&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 10:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-show-percentages-when-using-pie-chart/m-p/328005#M97634</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-01-31T10:19:42Z</dc:date>
    </item>
  </channel>
</rss>

