Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mhodorogea/dc.js
Browse files Browse the repository at this point in the history
Conflicts:
	src/stack-mixin.js
  • Loading branch information
mhodorogea committed Nov 17, 2014
2 parents 2f63c7b + 4bf7e34 commit cbe65ed
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 59 deletions.
9 changes: 8 additions & 1 deletion dc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,14 @@ dc.stackMixin = function (_chart) {
};

function flattenStack() {
return _chart.data().reduce(function (all, layer) {
var groups = _chart.data();

if(groups.length){
groups[0].values = _chart._computeOrderedGroups(groups[0].values);
// Order barChart (ordering option) by key or by value increasing or by value decreasing.
}

return groups.reduce(function (all, layer) {
return all.concat(layer.values);
}, []);
}
Expand Down
2 changes: 1 addition & 1 deletion dc.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dc.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit cbe65ed

Please sign in to comment.