Commit b856be58 authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix focus

parent 4fb7a341
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment