@datarailsshared/dr_renderer 1.2.124 → 1.2.125
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
|
@@ -447,7 +447,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
447
447
|
cols = this.point.name;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
var drOthersInColumn = lodash.find(pivotData.getColKeys(), keys => keys.length &&
|
|
450
|
+
var drOthersInColumn = lodash.find(pivotData.getColKeys(), keys => keys.length && lodash.includes(keys, 'DR_Others')) || [];
|
|
451
451
|
if (!lodash.isArray(cols) && drOthersInColumn[0] !== 'DR_Others') {
|
|
452
452
|
cols = [cols];
|
|
453
453
|
}
|
|
@@ -1378,7 +1378,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1378
1378
|
var num_cols = col_n_keys.length;
|
|
1379
1379
|
var num_rows = row_n_keys.length;
|
|
1380
1380
|
|
|
1381
|
-
const isOthersIncludedInRow = num_rows === 1 && row_n_keys[0]
|
|
1381
|
+
const isOthersIncludedInRow = num_rows === 1 && lodash.includes(row_n_keys[0], 'DR_Others');
|
|
1382
1382
|
const othersName = lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others';
|
|
1383
1383
|
|
|
1384
1384
|
lodash.forEach(col_n_keys, function (col_n_value) {
|