We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e90b89 commit 24d6800Copy full SHA for 24d6800
client/app/visualizations/counter/index.js
@@ -145,8 +145,13 @@ const CounterRenderer = {
145
$scope.targetValueTooltip = formatTooltip($scope.targetValue, options.tooltipFormat);
146
147
$scope.counterValue = formatValue($scope.counterValue, options);
148
+
149
if (options.formatTargetValue) {
150
$scope.targetValue = formatValue($scope.targetValue, options);
151
+ } else {
152
+ if (Number.isFinite($scope.targetValue)) {
153
+ $scope.targetValue = numeral($scope.targetValue).format('0[.]00[0]');
154
+ }
155
}
156
157
0 commit comments