Browse Source

Fix flow

pull/1053/head
Masayuki Tanaka 10 years ago
parent
commit
0d8ac04b19
  1. 4
      c3.js
  2. 2
      c3.min.js
  3. 4
      src/core.js

4
c3.js

@ -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 = [];

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

4
src/core.js

@ -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 = [];

Loading…
Cancel
Save