expandAllData(withAllChildren: Boolean, type: String)
[starting from version: 1.4]
Expands all fields and drills down all multilevel hierarchies in rows, columns, or rows and columns. Works for the grid and the charts.
1) Expands all fields and drills down all multilevel hierarchies in the slice.
pivot.expandAllData();
Try the example on JSFiddle.
2) Expands all fields in the slice but does not drill down multilevel hierarchies.
pivot.expandAllData(false);
3) Expands all fields and drills down all multilevel hierarchies in rows.
pivot.expandAllData(true, "rows");