diff --git a/c3.js b/c3.js index 9d25a27..48c9941 100644 --- a/c3.js +++ b/c3.js @@ -1199,7 +1199,6 @@ d3.selectAll('.legend-item').filter(function(_d){ return _d !== d }) .transition().duration(100) .style('opacity', 0.3) - c3.defocus() c3.focus(d) }) .on('mouseout', function(d){ @@ -1250,6 +1249,7 @@ } c3.focus = function (target) { + c3.defocus() d3.selectAll(getTargetSelector(target)) .filter(function(d){ return hasTarget(d.id) }) .classed('focused', true)