[starting from version: 1.4]
Collapses all nodes and drills up all levels of all hierarchies on the grid and on charts. All expanded/drilled down nodes will be collapsed/drilled up on the grid and on charts.
pivot.collapseAllData();
Try the example on JSFiddle.