Modify findMinMax

parent 611970d4
......@@ -589,14 +589,19 @@ c3_chart_internal_fn.findMinMax = function () {
var minY, maxY, minX, maxX;
var i,j, id;
var stacked;
// detect if we have stacked group
var stacked = false;
if ($$.ed3Config.stacked) {
stacked = true;
} else {
stacked = false;
var groups = $$.api.groups();
groups.forEach(function(elem){
if(elem.length) {
groups.forEach(function (elem) {
if (elem.length) {
stacked = true;
}
});
}
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