@datarailsshared/dr_renderer 1.2.393 → 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 +1 -1
- package/src/highcharts_renderer.js +17 -1
- package/src/pivottable.js +0 -7
package/package.json
CHANGED
@@ -3271,7 +3271,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
3271
3271
|
chartOptions.plotOptions.column = highchartsRenderer.getDataLabelsOptions(additionOptions, chartOptions.plotOptions.column);
|
3272
3272
|
|
3273
3273
|
if (opts.drillDownListFunc) {
|
3274
|
-
chartOptions.plotOptions.series = {
|
3274
|
+
chartOptions.plotOptions.series = {
|
3275
|
+
animation: !disableAnimation,
|
3276
|
+
};
|
3275
3277
|
chartOptions.plotOptions.series.cursor = 'pointer';
|
3276
3278
|
chartOptions.plotOptions.series.point = {
|
3277
3279
|
events: {
|
@@ -4795,6 +4797,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
4795
4797
|
var temp_cols = opts.cols;
|
4796
4798
|
opts.cols = opts.rows;
|
4797
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
|
+
}
|
4798
4807
|
}
|
4799
4808
|
|
4800
4809
|
optsFiltered = $.extend(defaults, opts);
|
@@ -4958,6 +4967,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
4958
4967
|
var temp_cols = opts.cols;
|
4959
4968
|
opts.cols = opts.rows;
|
4960
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
|
+
}
|
4961
4977
|
}
|
4962
4978
|
|
4963
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 = [];
|