Skip to content

Commit

Permalink
Fix bug when using filters as aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
dlumbrer committed Nov 16, 2018
1 parent 349265b commit 9655d6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/kbn_dotplot_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ module.controller('KbnDotplotVisController', function ($scope, $element, $timeou
var dicColor = {}
//Names of the field that have been selected
var firstFieldAggId = $scope.vis.aggs.bySchemaName['field'][0].id;
var fieldAggName = $scope.vis.aggs.bySchemaName['field'][0].params.field.displayName;
if ($scope.vis.aggs.bySchemaName['field'][0].params.field) {
var fieldAggName = $scope.vis.aggs.bySchemaName['field'][0].params.field.displayName;
}
if($scope.vis.aggs.bySchemaName['field'][1]){
id_secondfield = '1'
id_x = '2'
id_y = '3'
id_size = '4'
var secondFieldAggId = $scope.vis.aggs.bySchemaName['field'][1].id;
var secondfieldAggName = $scope.vis.aggs.bySchemaName['field'][1].params.field.displayName;
if ($scope.vis.aggs.bySchemaName['field'][1].params.field) {
var secondfieldAggName = $scope.vis.aggs.bySchemaName['field'][1].params.field.displayName;
}
}


Expand Down

0 comments on commit 9655d6a

Please sign in to comment.