Dashboards & Visualizations

how to round off values in pie chart

Explorer

Please suggesany way of rounding off values in pie chart

Tags (1)
0 Karma
1 Solution

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

Explorer

Much thanks Chris!!

0 Karma

Motivator

You're welcome

0 Karma

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