|
|
@ -428,9 +428,7 @@ c3_chart_internal_fn.redraw = function (options, transitions) { |
|
|
|
var duration, durationForExit, durationForAxis; |
|
|
|
var duration, durationForExit, durationForAxis; |
|
|
|
var waitForDraw, flow; |
|
|
|
var waitForDraw, flow; |
|
|
|
var targetsToShow = $$.filterTargetsToShow($$.data.targets), tickValues, i, intervalForCulling, xDomainForZoom; |
|
|
|
var targetsToShow = $$.filterTargetsToShow($$.data.targets), tickValues, i, intervalForCulling, xDomainForZoom; |
|
|
|
var xv = $$.xv.bind($$), |
|
|
|
var xv = $$.xv.bind($$), cx, cy; |
|
|
|
cx = ($$.config.axis_rotated ? $$.generateCircleY() : $$.circleX).bind($$), |
|
|
|
|
|
|
|
cy = ($$.config.axis_rotated ? $$.circleX : $$.generateCircleY()).bind($$); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options = options || {}; |
|
|
|
options = options || {}; |
|
|
|
withY = getOption(options, "withY", true); |
|
|
|
withY = getOption(options, "withY", true); |
|
|
@ -587,6 +585,10 @@ c3_chart_internal_fn.redraw = function (options, transitions) { |
|
|
|
if ($$.updateZoom) { $$.updateZoom(); } |
|
|
|
if ($$.updateZoom) { $$.updateZoom(); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// generate circle x/y functions depending on updated params
|
|
|
|
|
|
|
|
cx = ($$.config.axis_rotated ? $$.generateCircleY() : $$.circleX).bind($$); |
|
|
|
|
|
|
|
cy = ($$.config.axis_rotated ? $$.circleX : $$.generateCircleY()).bind($$); |
|
|
|
|
|
|
|
|
|
|
|
// transition should be derived from one transition
|
|
|
|
// transition should be derived from one transition
|
|
|
|
d3.transition().duration(duration).each(function () { |
|
|
|
d3.transition().duration(duration).each(function () { |
|
|
|
var transitions = []; |
|
|
|
var transitions = []; |
|
|
|