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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...