@datarailsshared/dr_renderer 1.2.299 → 1.2.300-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
@@ -1155,6 +1155,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
1155
1155
|
ob.name = row_n_value.join(highchartsRenderer.delimer)
|
1156
1156
|
.replace(highchartsRenderer.DR_OTHERS_KEY, othersName);
|
1157
1157
|
}
|
1158
|
+
|
1158
1159
|
lodash.forEach(col_n_keys, function (col_n_value, index) {
|
1159
1160
|
var agg = pivotData.getAggregator(row_n_value, col_n_value);
|
1160
1161
|
var val = agg.value();
|
@@ -1396,6 +1397,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
1396
1397
|
if (opts.trendLine) {
|
1397
1398
|
const a = ((ySum * squareXSum) - (xSum * xySum)) / ((n * squareXSum) - (xSum * xSum));
|
1398
1399
|
const b = ((n * xySum) - (xSum* ySum)) / ((n * squareXSum) - (xSum * xSum));
|
1400
|
+
|
1399
1401
|
const trendSeries = lodash.clone(chart_series[chart_series.length - 1]);
|
1400
1402
|
trendSeries.className = 'trendSeries';
|
1401
1403
|
trendSeries.name = highchartsRenderer.getTrendSeriesName(trendSeries);
|
@@ -1406,6 +1408,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
1406
1408
|
if (colors && colors[i]) {
|
1407
1409
|
trendSeries.color = colors[i];
|
1408
1410
|
}
|
1411
|
+
|
1409
1412
|
trendSerieses.push(trendSeries);
|
1410
1413
|
}
|
1411
1414
|
i++;
|
@@ -1422,6 +1425,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
1422
1425
|
}
|
1423
1426
|
|
1424
1427
|
let weights = { line: 2,spline: 3 ,area:-2, areaspline: -1, scatter:4, column: 1 };
|
1428
|
+
|
1425
1429
|
if (opts.comboOptions && lodash.includes(chartType,'combo') && !lodash.isEqual(row_n_keys, EMPTY_ROW_N_KEYS)) {
|
1426
1430
|
chart_series.forEach((series, seriesIndex) => {
|
1427
1431
|
const savedSeriesOption = lodash.find(opts.comboOptions.seriesOptions, {series: series.name});
|