Browse Source

Fix selected circle when bar appear

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
608a5c52ad
  1. 8
      c3.js

8
c3.js

@ -1018,9 +1018,7 @@
.attr("cx", function(d){ return x(d.x) }) .attr("cx", function(d){ return x(d.x) })
.attr("cy", function(d){ return y(d.value) }) .attr("cy", function(d){ return y(d.value) })
.attr("r", __point_r) .attr("r", __point_r)
mainCircle.exit() mainCircle.exit().remove()
.attr("y", 0)
.remove()
// bars // bars
barW = getBarW(xAxis, barTargetsNum) barW = getBarW(xAxis, barTargetsNum)
@ -1071,6 +1069,10 @@
} }
// circles for select // circles for select
main.selectAll('.selected-circles')
.filter(function(d){ return isBarType(d); })
.selectAll('circle')
.remove()
main.selectAll('.selected-circle') main.selectAll('.selected-circle')
.attr("cx", function(d) { return x(d.x) }) .attr("cx", function(d) { return x(d.x) })
.attr("cy", function(d) { return y(d.value) }) .attr("cy", function(d) { return y(d.value) })

Loading…
Cancel
Save