Commit 0d8ac04b authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix flow

parent ff60d03d
......@@ -638,7 +638,7 @@
flow = $$.generateFlow({
targets: targetsToShow,
flow: options.flow,
duration: duration,
duration: options.flow.duration,
drawBar: drawBar,
drawLine: drawLine,
drawArea: drawArea,
......@@ -650,7 +650,7 @@
});
}
if (duration && $$.isTabVisible()) { // Only use transition if tab visible. See #938.
if ((duration || flow) && $$.isTabVisible()) { // Only use transition if tab visible. See #938.
// transition should be derived from one transition
d3.transition().duration(duration).each(function () {
var transitionsToWait = [];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -633,7 +633,7 @@ c3_chart_internal_fn.redraw = function (options, transitions) {
flow = $$.generateFlow({
targets: targetsToShow,
flow: options.flow,
duration: duration,
duration: options.flow.duration,
drawBar: drawBar,
drawLine: drawLine,
drawArea: drawArea,
......@@ -645,7 +645,7 @@ c3_chart_internal_fn.redraw = function (options, transitions) {
});
}
if (duration && $$.isTabVisible()) { // Only use transition if tab visible. See #938.
if ((duration || flow) && $$.isTabVisible()) { // Only use transition if tab visible. See #938.
// transition should be derived from one transition
d3.transition().duration(duration).each(function () {
var transitionsToWait = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment