Skip to content

Commit

Permalink
heatmap bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Nov 4, 2015
1 parent e478876 commit f5b321a
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions public/javascripts/visualisation.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,23 @@ function joinHeapMap(data) {
;


var heatMap = svg.selectAll(".heatmap")
function stopEvent() {
d3.event.preventDefault();
d3.event.sourceEvent.stopPropagation();
d3.event.preventDefault();
d3.event.stopPropagation();
d3.event.stopImmediatePropagation();
}

var heatMap = svg
.append("g")
.attr("class", "cell_heat_map g3")
.selectAll(".heatmap")
.data(data.values, function(d) {
var row = d.row;
if (d.value != -10) {
numLabel[row - 1] += 1;
}
if (d.value == -10) return null;
return d.row + ':' + d.col;
})
.enter()
Expand All @@ -597,6 +607,8 @@ function joinHeapMap(data) {
.attr("width", function(d) { return cellSize; })
.attr("height", function(d) { return cellSize; })
.style("fill", function(d) { return colorScale(d.value); })
.on("mousedown", stopEvent)
.on("click", stopEvent)
.on("mouseover", function(d){
//highlight text
d3.select(this).classed("cell-hover",true);
Expand Down Expand Up @@ -656,6 +668,21 @@ function joinHeapMap(data) {
.attr("class", function (d,i) { return "numLabel mono r"+i;} )
;

var sa=d3.select(".g3")
.on("mousedown", function() {
return null;
})
.on("mousemove", function() {
return null;
})
.on("mouseup", function() {
return null;
})
.on("mouseout", function() {
return null;
})
;

function cdrTransform(cdr) {
var cdr3aa = cdr.cdr3aa,
//cdr3nt = cdr.cdr3nt,
Expand Down

0 comments on commit f5b321a

Please sign in to comment.