@datarailsshared/dr_renderer 1.2.386 → 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.386",
3
+ "version": "1.2.388",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -6442,13 +6442,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6442
6442
  element_type: 'checkbox',
6443
6443
  element_label: 'Subtotals for columns',
6444
6444
  value_name: 'show_subtotals_for_columns',
6445
- default_value: true
6445
+ default_value: false
6446
6446
  },
6447
6447
  {
6448
6448
  element_type: 'checkbox',
6449
6449
  element_label: 'Subtotals for rows',
6450
6450
  value_name: 'show_subtotals_for_rows',
6451
- default_value: true
6451
+ default_value: false
6452
6452
  },
6453
6453
  {
6454
6454
  element_type: 'checkbox',
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 = [];