Skip to content

Commit

Permalink
added _working_ tooltips to sets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsb committed Jun 25, 2019
1 parent f21097e commit 5921fff
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions setSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ function plotSetOverview() {
})
.on('mouseout', function (d, i) {
mouseoutColumn(d, i);
});
})
.append("svg:title")
.text(function (d) {
return d.elementName + " (" + d.setSize + ")";
});
// background bar
usedSetsLabelsEnter
.append('rect')
Expand All @@ -120,16 +124,17 @@ function plotSetOverview() {
.on('mouseover', mouseoverColumn)
.on('mouseout', mouseoutColumn)
.on('click', setClicked)
.append("svg:title")
.text(function (d) {
return d.elementName + " (" + d.setSize + ")";
});
// *** update sizes (might happen when changing datasets)
d3.selectAll(".usedSets .setSize").transition().duration(1000).attr({
y: function (d) {
return (textHeight - (setSizeScale(d.setSize)));
},
height: function (d) {
return setSizeScale(d.setSize);
},
title: function (d) {
return d.setSize
}
});
usedSetsLabelsEnter.transition().duration(400).delay(400).attr({
Expand Down Expand Up @@ -290,11 +295,10 @@ function plotSetOverview() {
return setSizeScale(d.setSize);
},
width: cellSize - 2,
title: function (d) {
return d.setSize
}
})
.on('click', setClicked)
// .append('title').text(function (d) {return d});
// .append('title').text("what");
// .append("svg:title")
// .text(function(d, i) { return d.elementName + " (" +d.setSize+ ")"; });;

Expand Down Expand Up @@ -368,14 +372,8 @@ function plotSetOverview() {
} else {
return 'setSizeRect unusedSetSize'
}


}


})


}
}

Expand Down

0 comments on commit 5921fff

Please sign in to comment.