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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...