@datarailsshared/dr_renderer 1.2.394 → 1.2.395

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.394",
3
+ "version": "1.2.395",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -4797,6 +4797,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
4797
4797
  var temp_cols = opts.cols;
4798
4798
  opts.cols = opts.rows;
4799
4799
  opts.rows = temp_cols;
4800
+
4801
+ if (highchartsRenderer.sortHasBeenDoneOnBE(lodash.get(widget.pivot, 'keysObject'))) {
4802
+ opts.keysObject = lodash.cloneDeep(widget.pivot.keysObject);
4803
+ const tempColKeys = opts.keysObject.col_keys;
4804
+ opts.keysObject.col_keys = opts.keysObject.row_keys;
4805
+ opts.keysObject.row_keys = tempColKeys;
4806
+ }
4800
4807
  }
4801
4808
 
4802
4809
  optsFiltered = $.extend(defaults, opts);
@@ -4960,6 +4967,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
4960
4967
  var temp_cols = opts.cols;
4961
4968
  opts.cols = opts.rows;
4962
4969
  opts.rows = temp_cols;
4970
+
4971
+ if (highchartsRenderer.sortHasBeenDoneOnBE(lodash.get(widget.pivot, 'keysObject'))) {
4972
+ opts.keysObject = lodash.cloneDeep(widget.pivot.keysObject);
4973
+ const tempColKeys = opts.keysObject.col_keys;
4974
+ opts.keysObject.col_keys = opts.keysObject.row_keys;
4975
+ opts.keysObject.row_keys = tempColKeys;
4976
+ }
4963
4977
  }
4964
4978
 
4965
4979
  optsFiltered = $.extend(defaults, opts);
package/src/pivottable.js CHANGED
@@ -695,13 +695,6 @@ let initPivotTable = function($, window, document) {
695
695
  this.rowKeys = opts.keysObject.row_keys;
696
696
  this.colKeys = opts.keysObject.col_keys;
697
697
  this.rowKeysByCols = opts.keysObject.row_keys_by_cols;
698
-
699
- const isTransposed = _.get(opts, 'rendererOptions.chartOptions.table_options.transpose_table', false);
700
- if (isTransposed) {
701
- const colKeys = this.colKeys;
702
- this.colKeys = this.rowKeys;
703
- this.rowKeys = colKeys;
704
- }
705
698
  } else {
706
699
  this.rowKeys = [];
707
700
  this.colKeys = [];