Skip to content

Commit

Permalink
Fixing hover to Fix electricitymaps#173
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Dec 27, 2016
1 parent 7576b40 commit fc8f452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/countrytable.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ CountryTable.prototype.data = function(arg) {
return (d.capacity == null || d.production == null) ? 0 : (that.powerScale(d.capacity) - that.powerScale(0));
})
.on('end', function () { d3.select(this).style('display', 'block'); });
selection.select('rect.production')
// Add event handlers
selection.select('rect.capacity')
.on('mouseover', function (d) {
if (that.productionMouseOverHandler)
that.productionMouseOverHandler.call(this, d, that._data.countryCode);
Expand Down

0 comments on commit fc8f452

Please sign in to comment.