@datarailsshared/dr_renderer 1.2.323-dragons → 1.2.324
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dr_pivottable.js +3 -3
- package/src/highcharts_renderer.js +230 -181
- package/src/pivottable.js +4 -17
- package/tests/highcharts_renderer.test.js +527 -0
- package/tests/mock/add-in-dynamic-ranges.json +133 -0
- package/tests/mock/add-in-functions.json +412 -0
- package/tests/mock/add-in-tables.json +347 -0
- package/tests/mock/widgets.json +411 -0
package/src/pivottable.js
CHANGED
@@ -686,17 +686,8 @@ let initPivotTable = function($, window, document) {
|
|
686
686
|
});
|
687
687
|
this.tree = {};
|
688
688
|
this.insights = [];
|
689
|
-
|
690
|
-
this.
|
691
|
-
if (this.isKeysSortingDoneOnBackendSide) {
|
692
|
-
this.rowKeys = opts.keysObject.row_keys;
|
693
|
-
this.colKeys = opts.keysObject.col_keys;
|
694
|
-
// TODO: add also for breakdown sort object when BE story is ready.
|
695
|
-
} else {
|
696
|
-
this.rowKeys = [];
|
697
|
-
this.colKeys = [];
|
698
|
-
}
|
699
|
-
|
689
|
+
this.rowKeys = [];
|
690
|
+
this.colKeys = [];
|
700
691
|
this.rowTotals = {};
|
701
692
|
this.colTotals = {};
|
702
693
|
this.allTotal = this.aggregator(this, [], []);
|
@@ -861,16 +852,12 @@ let initPivotTable = function($, window, document) {
|
|
861
852
|
};
|
862
853
|
|
863
854
|
PivotData.prototype.getColKeys = function() {
|
864
|
-
|
865
|
-
this.sortKeys();
|
866
|
-
}
|
855
|
+
this.sortKeys();
|
867
856
|
return this.colKeys;
|
868
857
|
};
|
869
858
|
|
870
859
|
PivotData.prototype.getRowKeys = function() {
|
871
|
-
|
872
|
-
this.sortKeys();
|
873
|
-
}
|
860
|
+
this.sortKeys();
|
874
861
|
return this.rowKeys;
|
875
862
|
};
|
876
863
|
|