From fc8f45284958dcf0fe947a7898f617a46eae154b Mon Sep 17 00:00:00 2001 From: Olivier Corradi Date: Tue, 27 Dec 2016 16:14:21 +0100 Subject: [PATCH] Fixing hover to Fix #173 --- web/app/countrytable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/countrytable.js b/web/app/countrytable.js index c52e83368d..a8c550bd04 100644 --- a/web/app/countrytable.js +++ b/web/app/countrytable.js @@ -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);