@datarailsshared/dr_renderer 1.4.80 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.4.80",
3
+ "version": "1.4.87",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -7680,7 +7680,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7680
7680
  },
7681
7681
  'line-chart-forecast': {
7682
7682
  name: 'Combined Line',
7683
- label: 'Combined Line',
7683
+ label: 'Forecast Chart',
7684
7684
  title: 'Show forecast over time.',
7685
7685
  description: 'For example, see how your Monthly Revenue evolves over a given period.',
7686
7686
  axisName: 'X - Axis',
@@ -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'],