Browse Source

Merge pull request #264 from bjlbernal/patch-1

Update c3.js, getInterporate being used to fill interpolate value. ...porate vs ...polate
pull/267/head
Masayuki Tanaka 11 years ago
parent
commit
18feffab7b
  1. 6
      c3.js

6
c3.js

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

Loading…
Cancel
Save