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