@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 +1 -1
- package/src/pivottable.js +7 -0
package/package.json
CHANGED
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 = [];
|