|
|
@ -226,7 +226,7 @@ c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) { |
|
|
|
yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale, |
|
|
|
yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale, |
|
|
|
xValue = function (d) { return (isSub ? $$.subxx : $$.xx).call($$, d); }, |
|
|
|
xValue = function (d) { return (isSub ? $$.subxx : $$.xx).call($$, d); }, |
|
|
|
value0 = function (d, i) { |
|
|
|
value0 = function (d, i) { |
|
|
|
return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)(0); |
|
|
|
return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)($$.getAreaBaseValue(d.id)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
value1 = function (d, i) { |
|
|
|
value1 = function (d, i) { |
|
|
|
return config.data_groups.length > 0 ? getPoints(d, i)[1][1] : yScaleGetter.call($$, d.id)(d.value); |
|
|
|
return config.data_groups.length > 0 ? getPoints(d, i)[1][1] : yScaleGetter.call($$, d.id)(d.value); |
|
|
@ -253,7 +253,9 @@ c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) { |
|
|
|
return path ? path : "M 0 0"; |
|
|
|
return path ? path : "M 0 0"; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
c3_chart_internal_fn.getAreaBaseValue = function () { |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
}; |
|
|
|
c3_chart_internal_fn.generateGetAreaPoints = function (areaIndices, isSub) { // partial duplication of generateGetBarPoints
|
|
|
|
c3_chart_internal_fn.generateGetAreaPoints = function (areaIndices, isSub) { // partial duplication of generateGetBarPoints
|
|
|
|
var $$ = this, config = $$.config, |
|
|
|
var $$ = this, config = $$.config, |
|
|
|
areaTargetsNum = areaIndices.__max__ + 1, |
|
|
|
areaTargetsNum = areaIndices.__max__ + 1, |
|
|
|