Modify findMinMax

parent 611970d4
...@@ -589,14 +589,19 @@ c3_chart_internal_fn.findMinMax = function () { ...@@ -589,14 +589,19 @@ c3_chart_internal_fn.findMinMax = function () {
var minY, maxY, minX, maxX; var minY, maxY, minX, maxX;
var i,j, id; var i,j, id;
var stacked;
// detect if we have stacked group // detect if we have stacked group
var stacked = false; if ($$.ed3Config.stacked) {
stacked = true;
} else {
stacked = false;
var groups = $$.api.groups(); var groups = $$.api.groups();
groups.forEach(function(elem){ groups.forEach(function (elem) {
if(elem.length) { if (elem.length) {
stacked = true; stacked = true;
} }
}); });
}
var stackedSum = []; var stackedSum = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment