Commit 4f75bc89 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Merge pull request #475 from michalkop93/master

make area obey line.connect_null
parents 24c1ad13 70728338
......@@ -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);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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