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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...