@datarailsshared/dr_renderer 1.2.70 → 1.2.71
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
|
@@ -917,6 +917,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
917
917
|
const n = col_n_keys.length;
|
|
918
918
|
const xSum = (1 + n) / 2 * n;
|
|
919
919
|
const trendSerieses = [];
|
|
920
|
+
const othersName = lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others';
|
|
920
921
|
|
|
921
922
|
lodash.forEach(row_n_keys, function (row_n_value) {
|
|
922
923
|
var ob = {};
|
|
@@ -925,7 +926,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
925
926
|
let squareXSum = 0;
|
|
926
927
|
ob.data = [];
|
|
927
928
|
if (row_n_value && row_n_value.length > 0) {
|
|
928
|
-
let othersName = lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others';
|
|
929
929
|
ob.name = row_n_value.join(highchartsRenderer.delimer).replace('DR_Others', othersName);
|
|
930
930
|
}
|
|
931
931
|
|
|
@@ -933,6 +933,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
933
933
|
var agg = pivotData.getAggregator(row_n_value, col_n_value);
|
|
934
934
|
var val = agg.value();
|
|
935
935
|
|
|
936
|
+
if (col_n_value[0] === 'DR_Others') {
|
|
937
|
+
col_n_value[0] = othersName;
|
|
938
|
+
}
|
|
939
|
+
|
|
936
940
|
if (isUniqueVals && agg.uniq)
|
|
937
941
|
val = agg.uniq.join('<br>');
|
|
938
942
|
|