[FIX] Address pull-request comments

-Store ($scope.aggregateValueAsXrp / metric) in a variable to improve readability