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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...