Browse Source

make area obey line.connect_null

when line.connect_null is set to false areas are disconnected as well as
lines
pull/475/head
Michal Kopecny 10 years ago
parent
commit
7072833892
  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