Splunk Search

Display percentage on pie charts in Splunk 6?

jaj
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

aelliott
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

surekhasplunk
Communicator

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

sinash
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.

fabiocaldas
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>

sudarshan391
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

AndyMarr
Explorer

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

0 Karma

somesoni2
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

aelliott
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

AndyMarr
Explorer

I downvoted this post because mistake

0 Karma

lfedak_splunk
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

AndyMarr
Explorer

Yes, I upvoted the wrong one

0 Karma

lfedak_splunk
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

aelliott
Motivator

updated answer to say option

0 Karma

jaj
Path Finder

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

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...