Browse Source

Merge pull request #475 from michalkop93/master

make area obey line.connect_null
pull/500/head
Masayuki Tanaka 10 years ago
parent
commit
4f75bc894f
  1. 5
      c3.js
  2. 4
      c3.min.js

5
c3.js

@ -2554,9 +2554,10 @@
};
area = __axis_rotated ? area.x0(value0).x1(value1).y(xx) : area.x(xx).y0(value0).y1(value1);
if (!__line_connect_null) { area = area.defined(function (d) { return d.value !== null; }); }
return function (d) {
var data = filterRemoveNull(d.values), x0 = 0, y0 = 0, path;
var data = __line_connect_null ? filterRemoveNull(d.values):d.values, x0 = 0, y0 = 0, path;
if (isAreaType(d)) {
path = area.interpolate(getInterpolate(d))(data);

4
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save