@datarailsshared/dr_renderer 1.2.387 → 1.2.388

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.387",
3
+ "version": "1.2.388",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
package/src/pivottable.js CHANGED
@@ -695,6 +695,13 @@ 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
+ }
698
705
  } else {
699
706
  this.rowKeys = [];
700
707
  this.colKeys = [];