Skip to content

Commit

Permalink
Solved issue where on parallels resize events buttons for remove and …
Browse files Browse the repository at this point in the history
…clear brush stopped working; Added check to see if domain may and min is equal, extending max by one if it is the case so that a range can be shown in the plot;
  • Loading branch information
santilland committed Sep 26, 2016
1 parent 5728d0b commit 0f7e4be
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/scripts/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion app/scripts/scatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ scatterPlot.prototype.render = function(){
domain = d3.extent(this.data, function(d) {
return d[par];
});
if(domain[0] == domain[1]){
domain[1] = domain[1] + 1;
}
}
var d_max1 = domain[1];
var d_min1 = domain[0];
Expand Down Expand Up @@ -1971,6 +1974,7 @@ scatterPlot.prototype.parallelsPlot = function parallelsPlot(){
.attr("id", "filtermanager");

var that = self;

function handleClickedItem(evt){
if($(evt.originalEvent.srcElement).hasClass("erasorfunction") ||
$(evt.originalEvent.srcElement).hasClass("w2ui-list-remove") ||
Expand Down Expand Up @@ -2453,7 +2457,9 @@ scatterPlot.prototype.parallelsPlot = function parallelsPlot(){
html+= ': '+self.uom_set[item.id].name;
}
return html;
}
},
onClick: handleClickedItem.bind(self),
onRemove: handleRemovedItem.bind(self)
});
}

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analyticsviewer",
"version": "0.4.9",
"version": "0.4.11",
"dependencies": {
"sass-bootstrap": "~3.0.0",
"modernizr": "~2.6.2",
Expand Down
4 changes: 2 additions & 2 deletions lib/scripts/av.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 0f7e4be

Please sign in to comment.