Dashboards & Visualizations

how to round off values in pie chart

nidhigoyal
Explorer

Please suggesany way of rounding off values in pie chart

Tags (1)
0 Karma
1 Solution

chris
Motivator

You can round numbers using the search language. There is a round function for eval that can help you.
http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Commonevalfunctions

This is an example:

index=_internal  eps source="*metrics*" | head 100 | stats avg(eps) as avg by series | eval avg=round(avg,2)

View solution in original post

nidhigoyal
Explorer

Much thanks Chris!!

0 Karma

chris
Motivator

You're welcome

0 Karma

chris
Motivator

You can round numbers using the search language. There is a round function for eval that can help you.
http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Commonevalfunctions

This is an example:

index=_internal  eps source="*metrics*" | head 100 | stats avg(eps) as avg by series | eval avg=round(avg,2)
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 ...