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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...