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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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