Browse Source

Fix bug when all null data exists - #137

pull/155/head
Masayuki Tanaka 11 years ago
parent
commit
dfc43024a0
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -2156,8 +2156,8 @@
isSplineType(d) ? area.interpolate("cardinal") : area.interpolate("linear");
return area(data);
} else {
x0 = x(data[0].x);
y0 = getYScale(d.id)(data[0].value);
x0 = data[0] ? x(data[0].x) : 0;
y0 = data[0] ? getYScale(d.id)(data[0].value) : 0;
return __axis_rotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
}
};

2
c3.min.js vendored

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