Splunk Search

Display percentage on pie charts in Splunk 6?

Path Finder

how can I by default display % and label values on a pie chart in splunk 6? The only that I can get displayed are the values of the label and not the values or percentages?

Tags (3)
1 Solution

Motivator

try this:
http://answers.splunk.com/answers/58985/pie-chart-data-labels
Have the showPercent to "true." The default is false. It will show the label and the percent next to it.

Example:
true

View solution in original post

Communicator

Like showPercent do we have something like showCount to show the count as well not just only the percentage

Explorer

You can display the counts by editing your search string. For example, if you want to show the count of each "ServerIP", you can do this:

... | stats count by ServerIP | sort -count | eval ServerIP=ServerIP." (".count.")"

which results in the counts being displayed in parentheses next to their values.

Contributor

I used http://answers.splunk.com/answers/154860/how-to-aggregate-percentage-information-in-pie-chart-labels... that works like a charm

<option name="charting.chart.showPercent">true</option>

Path Finder

in my case above option was name not present in the source but still i added above lines in my source and that worked for me.

0 Karma

Explorer

Same with me - I had to copy / paste in the whole line. Works great

0 Karma

SplunkTrust
SplunkTrust

They are visible as tool tip. If you want to update the label shown on the chart, you need to update your search. See this for reference.
http://answers.splunk.com/answers/91517/displaying-count-as-label-in-pie-graph

0 Karma

Motivator

try this:
http://answers.splunk.com/answers/58985/pie-chart-data-labels
Have the showPercent to "true." The default is false. It will show the label and the percent next to it.

Example:
true

View solution in original post

Explorer

I downvoted this post because mistake

0 Karma

Splunk Employee
Splunk Employee

Hi @AndyMarr, did you mean you accidentally upvoted it, or the answer is a mistake? Let us know so we can make sure the Answers forum is useful for our community members and so members don't lose points after giving working answers from being downvoted.

0 Karma

Explorer

Yes, I upvoted the wrong one

0 Karma

Splunk Employee
Splunk Employee

Thanks for the clarification. Just so you know-- when you downvote it takes away karma points from your own profile and from the user you downvote, so please use that feature judiciously for posts you come across that include poor etiquette or incorrect/ misleading answers/content. We have a karma points contest going on, so every point counts. Happy Splunking!

0 Karma

Motivator

updated answer to say option

0 Karma

Path Finder

awesome, that worked....however, I just had to change to and it worked just fine. thanks!

0 Karma