diff --git a/client/app/visualizations/counter/counter-editor.html b/client/app/visualizations/counter/counter-editor.html index df0cda25..ab760ef9 100644 --- a/client/app/visualizations/counter/counter-editor.html +++ b/client/app/visualizations/counter/counter-editor.html @@ -2,13 +2,13 @@
- +
- +
@@ -25,4 +25,10 @@
+
+
+ + Count Rows +
+
diff --git a/client/app/visualizations/counter/index.js b/client/app/visualizations/counter/index.js index 1e2a7f87..11b24a8e 100644 --- a/client/app/visualizations/counter/index.js +++ b/client/app/visualizations/counter/index.js @@ -14,10 +14,11 @@ function CounterRenderer() { const counterColName = $scope.visualization.options.counterColName; const targetColName = $scope.visualization.options.targetColName; - if (counterColName) { + if ($scope.visualization.options.countRow) { + $scope.counterValue = queryData.length; + } else if (counterColName) { $scope.counterValue = queryData[rowNumber][counterColName]; } - if (targetColName) { $scope.targetValue = queryData[targetRowNumber][targetColName];