Getting Data In

How to approximate pie chart percentage?

hagar71
Explorer

Hello everyone,

I want to change the percentage of pie chart to be integer 

 

I am using this to show the percentage 

 

 

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

 

 

 

and my query is 

 

 

index="test"  sourcetype=csv | chart count by status 

 

 

Labels (2)
0 Karma

nyc_jason
Splunk Employee
Splunk Employee

this may be a bit 'hacky', but if you want the actual value (the count) instead of the percentage, as part of the label on each slice, you could do something like this:

index="test"  sourcetype=csv | chart count by status |eval status=status." ".count
0 Karma
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! &#x1f308; In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...