@datarailsshared/dr_renderer 1.2.329 → 1.2.330
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
@@ -4503,8 +4503,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
4503
4503
|
const varianceConfig = widget.options.chartOptions.delta_column;
|
4504
4504
|
const data = pivotData.input;
|
4505
4505
|
const varianceField = varianceConfig.field === 'category' ? widget.cols[0] : widget.rows[0];
|
4506
|
-
const varianceRowsForCurrentKey = lodash.filter(data, row =>
|
4507
|
-
row[varianceField.name] === varianceConfig.name
|
4506
|
+
const varianceRowsForCurrentKey = lodash.filter(data, row =>
|
4507
|
+
row[varianceField.name] === varianceConfig.name
|
4508
4508
|
&& lodash.every(secondArray, (item, index) => row[attrs[index]] === item)
|
4509
4509
|
);
|
4510
4510
|
|
@@ -4515,7 +4515,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
4515
4515
|
if (lodash.includes(pivotData.rowAttrs, attrs[fieldIndex])) {
|
4516
4516
|
getAggregatorParams = lodash.reverse(getAggregatorParams);
|
4517
4517
|
}
|
4518
|
-
|
4518
|
+
|
4519
4519
|
let aggregator_subtotal = pivotData.getAggregator(...getAggregatorParams);
|
4520
4520
|
|
4521
4521
|
if (aggregator_subtotal) {
|
@@ -8594,7 +8594,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
8594
8594
|
}
|
8595
8595
|
|
8596
8596
|
if (widget.chart_type === highchartsRenderer.CHART_TYPES.WATERFALL_BREAKDOWN) {
|
8597
|
-
let filter = lodash.find(filters,
|
8597
|
+
let filter = lodash.find(filters, (f) => f.name === widget.cols[0].name || f.field === widget.cols[0].id);
|
8598
8598
|
if (filter) {
|
8599
8599
|
filter.is_excluded = false;
|
8600
8600
|
} else {
|
@@ -8860,7 +8860,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
8860
8860
|
}
|
8861
8861
|
|
8862
8862
|
/****** END *******/
|
8863
|
-
|
8863
|
+
|
8864
8864
|
// TODO: Remove. sortingValues looks like lagacy which is not in use neither in webclient nor in renderer
|
8865
8865
|
if (widget.options && widget.options.sortingValues) {
|
8866
8866
|
var field = lodash.find(datesFields, {name: widget.options.sortingValues.field});
|