|
|
@ -307,7 +307,7 @@ c3_chart_internal_fn.updateCircle = function () { |
|
|
|
$$.mainCircle.enter().append("circle") |
|
|
|
$$.mainCircle.enter().append("circle") |
|
|
|
.attr("class", $$.classCircle.bind($$)) |
|
|
|
.attr("class", $$.classCircle.bind($$)) |
|
|
|
.attr("r", $$.pointR.bind($$)) |
|
|
|
.attr("r", $$.pointR.bind($$)) |
|
|
|
.style("fill", $$.color); |
|
|
|
.style("color", $$.color); |
|
|
|
$$.mainCircle |
|
|
|
$$.mainCircle |
|
|
|
.style("opacity", $$.initialOpacityForCircle.bind($$)); |
|
|
|
.style("opacity", $$.initialOpacityForCircle.bind($$)); |
|
|
|
$$.mainCircle.exit().remove(); |
|
|
|
$$.mainCircle.exit().remove(); |
|
|
@ -317,7 +317,7 @@ c3_chart_internal_fn.redrawCircle = function (cx, cy, withTransition) { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
(withTransition ? this.mainCircle.transition(Math.random().toString()) : this.mainCircle) |
|
|
|
(withTransition ? this.mainCircle.transition(Math.random().toString()) : this.mainCircle) |
|
|
|
.style('opacity', this.opacityForCircle.bind(this)) |
|
|
|
.style('opacity', this.opacityForCircle.bind(this)) |
|
|
|
.style("fill", this.color) |
|
|
|
.style("color", this.color) |
|
|
|
.attr("cx", cx) |
|
|
|
.attr("cx", cx) |
|
|
|
.attr("cy", cy), |
|
|
|
.attr("cy", cy), |
|
|
|
(withTransition ? selectedCircles.transition(Math.random().toString()) : selectedCircles) |
|
|
|
(withTransition ? selectedCircles.transition(Math.random().toString()) : selectedCircles) |
|
|
|