Browse Source

Fixed areaOnSub y0 coord.

pull/254/head
Brandon Bernal 11 years ago
parent
commit
58f89877cc
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -2495,8 +2495,8 @@
var areaOnSub = (function () {
var area = d3.svg.area()
.x(xx)
.y0(function (d, i) { return getSubYScale(d.id)(0); })
.y1(function (d, i) { return getSubYScale(d.id)(d.value); });
.y0(function (d) { return getSubYScale(d.id)(margin.bottom - __subchart_size_height); })
.y1(function (d) { return getSubYScale(d.id)(d.value); });
return function (d) {
var data = filterRemoveNull(d.values), x0, y0;
if (hasType([d], 'area') || hasType([d], 'area-spline')) {

2
c3.min.js vendored

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