Browse Source

Fix focus

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
b856be587b
  1. 2
      c3.js

2
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)

Loading…
Cancel
Save