@datarailsshared/dr_renderer 1.4.82 → 1.4.89
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
@@ -10007,11 +10007,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
10007
10007
|
e.point.name = e.point.initialName;
|
10008
10008
|
e.point.series.name = lodash.get(e.point.series, 'userOptions.initialName', e.point.series.name);
|
10009
10009
|
const seriesData = lodash.get(e.point.series, 'userOptions.data');
|
10010
|
-
const
|
10010
|
+
const initialSeriesName = seriesData
|
10011
10011
|
? lodash.find(seriesData, obj => obj.name === e.point.name)
|
10012
10012
|
: null;
|
10013
|
-
if (
|
10014
|
-
e.point.series.name =
|
10013
|
+
if (initialSeriesName && initialSeriesName.type && ['SQ_Actuals', 'Forecast'].includes(initialSeriesName.type)) {
|
10014
|
+
e.point.series.name = 'Forecast';
|
10015
10015
|
}
|
10016
10016
|
lodash.set(e, 'point.category.userOptions', e.point.initialName.toString().split(highchartsRenderer.delimer));
|
10017
10017
|
}
|
@@ -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'],
|