@datarailsshared/dr_renderer 1.2.316-dragons → 1.2.318-rocket
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 -14
- package/src/highcharts_renderer.js +266 -220
- package/src/pivottable.js +4 -18
- package/tests/highcharts_renderer.test.js +0 -642
package/src/pivottable.js
CHANGED
|
@@ -577,7 +577,6 @@ let initPivotTable = function($, window, document) {
|
|
|
577
577
|
l_mapping = {};
|
|
578
578
|
for (i in order) {
|
|
579
579
|
x = order[i];
|
|
580
|
-
if (order[i] === null) x = '[null]';
|
|
581
580
|
mapping[x] = i;
|
|
582
581
|
if (typeof x === "string") {
|
|
583
582
|
l_mapping[x.toLowerCase()] = i;
|
|
@@ -686,17 +685,8 @@ let initPivotTable = function($, window, document) {
|
|
|
686
685
|
});
|
|
687
686
|
this.tree = {};
|
|
688
687
|
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
|
-
|
|
688
|
+
this.rowKeys = [];
|
|
689
|
+
this.colKeys = [];
|
|
700
690
|
this.rowTotals = {};
|
|
701
691
|
this.colTotals = {};
|
|
702
692
|
this.allTotal = this.aggregator(this, [], []);
|
|
@@ -861,16 +851,12 @@ let initPivotTable = function($, window, document) {
|
|
|
861
851
|
};
|
|
862
852
|
|
|
863
853
|
PivotData.prototype.getColKeys = function() {
|
|
864
|
-
|
|
865
|
-
this.sortKeys();
|
|
866
|
-
}
|
|
854
|
+
this.sortKeys();
|
|
867
855
|
return this.colKeys;
|
|
868
856
|
};
|
|
869
857
|
|
|
870
858
|
PivotData.prototype.getRowKeys = function() {
|
|
871
|
-
|
|
872
|
-
this.sortKeys();
|
|
873
|
-
}
|
|
859
|
+
this.sortKeys();
|
|
874
860
|
return this.rowKeys;
|
|
875
861
|
};
|
|
876
862
|
|