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
Revered Legend

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...