diff --git a/client/app/visualizations/counter/index.js b/client/app/visualizations/counter/index.js index d2577ba316..2ece76b2b2 100644 --- a/client/app/visualizations/counter/index.js +++ b/client/app/visualizations/counter/index.js @@ -145,8 +145,13 @@ const CounterRenderer = { $scope.targetValueTooltip = formatTooltip($scope.targetValue, options.tooltipFormat); $scope.counterValue = formatValue($scope.counterValue, options); + if (options.formatTargetValue) { $scope.targetValue = formatValue($scope.targetValue, options); + } else { + if (Number.isFinite($scope.targetValue)) { + $scope.targetValue = numeral($scope.targetValue).format('0[.]00[0]'); + } } }