@datarailsshared/dr_renderer 1.2.314 → 1.2.315-dragons

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.2.314",
3
+ "version": "1.2.315-dragons",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -1150,6 +1150,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1150
1150
  ob.name = row_n_value.join(highchartsRenderer.delimer)
1151
1151
  .replace(highchartsRenderer.DR_OTHERS_KEY, othersName);
1152
1152
  }
1153
+
1153
1154
  lodash.forEach(col_n_keys, function (col_n_value, index) {
1154
1155
  var agg = pivotData.getAggregator(row_n_value, col_n_value);
1155
1156
  var val = agg.value();
@@ -1391,6 +1392,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1391
1392
  if (opts.trendLine) {
1392
1393
  const a = ((ySum * squareXSum) - (xSum * xySum)) / ((n * squareXSum) - (xSum * xSum));
1393
1394
  const b = ((n * xySum) - (xSum* ySum)) / ((n * squareXSum) - (xSum * xSum));
1395
+
1394
1396
  const trendSeries = lodash.clone(chart_series[chart_series.length - 1]);
1395
1397
  trendSeries.className = 'trendSeries';
1396
1398
  trendSeries.name = highchartsRenderer.getTrendSeriesName(trendSeries);
@@ -1401,6 +1403,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1401
1403
  if (colors && colors[i]) {
1402
1404
  trendSeries.color = colors[i];
1403
1405
  }
1406
+
1404
1407
  trendSerieses.push(trendSeries);
1405
1408
  }
1406
1409
  i++;
@@ -1417,6 +1420,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1417
1420
  }
1418
1421
 
1419
1422
  let weights = { line: 2,spline: 3 ,area:-2, areaspline: -1, scatter:4, column: 1 };
1423
+
1420
1424
  if (opts.comboOptions && lodash.includes(chartType,'combo') && !lodash.isEqual(row_n_keys, EMPTY_ROW_N_KEYS)) {
1421
1425
  chart_series.forEach((series, seriesIndex) => {
1422
1426
  const savedSeriesOption = lodash.find(opts.comboOptions.seriesOptions, {series: series.name});