|
|
@ -2314,7 +2314,7 @@ |
|
|
|
return rect; |
|
|
|
return rect; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getInterporate(d) { |
|
|
|
function getInterpolate(d) { |
|
|
|
return isSplineType(d) ? "cardinal" : isStepType(d) ? "step-after" : "linear"; |
|
|
|
return isSplineType(d) ? "cardinal" : isStepType(d) ? "step-after" : "linear"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2423,7 +2423,7 @@ |
|
|
|
var data = filterRemoveNull(d.values), x0, y0; |
|
|
|
var data = filterRemoveNull(d.values), x0, y0; |
|
|
|
|
|
|
|
|
|
|
|
if (isAreaType(d)) { |
|
|
|
if (isAreaType(d)) { |
|
|
|
return area.interpolate(getInterporate(d))(data); |
|
|
|
return area.interpolate(getInterpolate(d))(data); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
x0 = x(data[0].x); |
|
|
|
x0 = x(data[0].x); |
|
|
|
y0 = getYScale(d.id)(data[0].value); |
|
|
|
y0 = getYScale(d.id)(data[0].value); |
|
|
@ -2450,7 +2450,7 @@ |
|
|
|
if (__data_regions[d.id]) { |
|
|
|
if (__data_regions[d.id]) { |
|
|
|
return lineWithRegions(data, x, y, __data_regions[d.id]); |
|
|
|
return lineWithRegions(data, x, y, __data_regions[d.id]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return line.interpolate(getInterporate(d))(data); |
|
|
|
return line.interpolate(getInterpolate(d))(data); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (data[0]) { |
|
|
|
if (data[0]) { |
|
|
|