Browse Source

Fix flow when no grids

pull/294/head
Masayuki Tanaka 11 years ago
parent
commit
fb11f87005
  1. 2
      c3.js
  2. 4
      c3.min.js
  3. 2
      htdocs/samples/api_flow_timeseries.html

2
c3.js

@ -4020,7 +4020,7 @@
// update x domain to generate axis elements for flow
updateXDomain(targetsToShow, true, true);
// update elements related to x scale
flushXGrid(true);
if (flushXGrid) { flushXGrid(true); }
// generate transform to flow
translateX = (x(flowStart.x) - x(flowEnd.x)) * (isTimeSeries ? 0.9 : 1); // TODO: fix 0.9, I don't know why 0.9..

4
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
htdocs/samples/api_flow_timeseries.html

@ -65,7 +65,7 @@
// ['data2', 100, 100],
['data3', 200, 150],
],
min: new Date('2013-01-20'),
to: new Date('2013-01-20'),
});
}, 1000);

Loading…
Cancel
Save