@datarailsshared/dr_renderer 1.2.68 → 1.2.69
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
|
@@ -1059,6 +1059,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1059
1059
|
const n = col_n_keys.length;
|
|
1060
1060
|
const xSum = (1 + n) / 2 * n;
|
|
1061
1061
|
const trendSerieses = [];
|
|
1062
|
+
const othersName = lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others';
|
|
1062
1063
|
|
|
1063
1064
|
lodash.forEach(row_n_keys, function (row_n_value) {
|
|
1064
1065
|
let ySum = 0;
|
|
@@ -1067,7 +1068,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1067
1068
|
var ob = {};
|
|
1068
1069
|
ob.data = [];
|
|
1069
1070
|
if (row_n_value && row_n_value.length > 0) {
|
|
1070
|
-
let othersName = lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others';
|
|
1071
1071
|
ob.name = lodash.unescape(row_n_value.join(highchartsRenderer.delimer).replace('DR_Others', othersName));
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
@@ -1105,6 +1105,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1105
1105
|
}
|
|
1106
1106
|
tmoobj.name = lodash.unescape(key);
|
|
1107
1107
|
|
|
1108
|
+
if (key && key.length > 0) {
|
|
1109
|
+
tmoobj.name = lodash.unescape(col_n_value.join(highchartsRenderer.delimer).replace('DR_Others', othersName));
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1108
1112
|
if (lodash.isEmpty(String(tmoobj.name))) {
|
|
1109
1113
|
tmoobj.name = "[blank]";
|
|
1110
1114
|
}
|