@datarailsshared/dr_renderer 1.4.82 → 1.4.87
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
@@ -26,7 +26,7 @@ function createSingleDataSeriesForForecast(chart_series, chartOptions, pivotData
|
|
26
26
|
function buildChartSeriesFromPivotInputOnly(input, actuals, forecast, midMonthOffset, name) {
|
27
27
|
const filtered = input.filter(item =>
|
28
28
|
(item.Scenario === DR_SCENARIO.SQ_Actuals || item.Scenario === DR_SCENARIO.Forecast) &&
|
29
|
-
item.Amount !== 0
|
29
|
+
item.Amount !== 0 && !!item['Reporting Month']
|
30
30
|
);
|
31
31
|
|
32
32
|
const data = lodash.map(filtered, item => ({
|
@@ -57,7 +57,7 @@ function buildChartSeriesForMultipleSeriesCombinedLine(chart_series, input, actu
|
|
57
57
|
|
58
58
|
const data = lodash.chain(input)
|
59
59
|
.filter(item => item['Scenario Cycle'] === series.name &&
|
60
|
-
(item['Scenario'] === DR_SCENARIO.SQ_Actuals || item['Scenario'] === DR_SCENARIO.Forecast))
|
60
|
+
(item['Scenario'] === DR_SCENARIO.SQ_Actuals || item['Scenario'] === DR_SCENARIO.Forecast) && !!item['Reporting Month'])
|
61
61
|
.map(item => ({
|
62
62
|
y: item.Amount,
|
63
63
|
name: item['Reporting Month'],
|