Modify findMinMax

parent 611970d4
...@@ -589,15 +589,20 @@ c3_chart_internal_fn.findMinMax = function () { ...@@ -589,15 +589,20 @@ 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) {
var groups = $$.api.groups(); stacked = true;
groups.forEach(function(elem){ } else {
if(elem.length) { stacked = false;
stacked = true; var groups = $$.api.groups();
} groups.forEach(function (elem) {
}); if (elem.length) {
stacked = true;
}
});
}
var stackedSum = []; var stackedSum = [];
var allData = $$.api.data(); var allData = $$.api.data();
......
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