@datarailsshared/dr_renderer 1.2.261 → 1.2.262-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 +1 -1
- package/src/highcharts_renderer.js +16 -2
package/package.json
CHANGED
|
@@ -494,8 +494,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
494
494
|
cols = this.point.name;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
highchartsRenderer.replaceDrOthersKeys(cols, rows, drOthersInAxis, othersName);
|
|
498
|
-
|
|
499
497
|
if (!lodash.isArray(cols)) {
|
|
500
498
|
cols = [cols];
|
|
501
499
|
}
|
|
@@ -537,6 +535,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
537
535
|
cols = modifiedRowsAndCols.cols;
|
|
538
536
|
}
|
|
539
537
|
|
|
538
|
+
highchartsRenderer.replaceDrOthersKeys(cols, rows, drOthersInAxis, othersName);
|
|
539
|
+
|
|
540
540
|
var aggr = pivotData.getAggregator(rows, cols);
|
|
541
541
|
|
|
542
542
|
const formattedValue = is_drill_down_pie || labelOptions.show_value ? $.pivotUtilities.getFormattedNumber(value, aggr, opts, true) : '';
|
|
@@ -1035,6 +1035,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1035
1035
|
ob.name = row_n_value.join(highchartsRenderer.delimer)
|
|
1036
1036
|
.replace(highchartsRenderer.DR_OTHERS_KEY, othersName);
|
|
1037
1037
|
}
|
|
1038
|
+
|
|
1038
1039
|
lodash.forEach(col_n_keys, function (col_n_value, index) {
|
|
1039
1040
|
var agg = pivotData.getAggregator(row_n_value, col_n_value);
|
|
1040
1041
|
var val = agg.value();
|
|
@@ -1134,6 +1135,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1134
1135
|
newSeries.className = 'totalSeries';
|
|
1135
1136
|
newSeries.name = 'Total';
|
|
1136
1137
|
newSeries.data = [];
|
|
1138
|
+
|
|
1139
|
+
if (colors && colors[i]) {
|
|
1140
|
+
newSeries.color = colors[i];
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1137
1143
|
col_n_keys.forEach(columnKey => {
|
|
1138
1144
|
let totalKey = columnKey;
|
|
1139
1145
|
if (lodash.isArray(columnKey)) {
|
|
@@ -1252,6 +1258,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1252
1258
|
if (opts.trendLine) {
|
|
1253
1259
|
const a = ((ySum * squareXSum) - (xSum * xySum)) / ((n * squareXSum) - (xSum * xSum));
|
|
1254
1260
|
const b = ((n * xySum) - (xSum* ySum)) / ((n * squareXSum) - (xSum * xSum));
|
|
1261
|
+
|
|
1255
1262
|
const trendSeries = lodash.clone(chart_series[chart_series.length - 1]);
|
|
1256
1263
|
trendSeries.className = 'trendSeries';
|
|
1257
1264
|
trendSeries.name = highchartsRenderer.getTrendSeriesName(trendSeries);
|
|
@@ -1262,6 +1269,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1262
1269
|
if (colors && colors[i]) {
|
|
1263
1270
|
trendSeries.color = colors[i];
|
|
1264
1271
|
}
|
|
1272
|
+
|
|
1265
1273
|
trendSerieses.push(trendSeries);
|
|
1266
1274
|
}
|
|
1267
1275
|
i++;
|
|
@@ -1278,6 +1286,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1278
1286
|
}
|
|
1279
1287
|
|
|
1280
1288
|
let weights = { line: 2,spline: 3 ,area:-2, areaspline: -1, scatter:4, column: 1 };
|
|
1289
|
+
|
|
1281
1290
|
if (opts.comboOptions && lodash.includes(chartType,'combo') && !lodash.isEqual(row_n_keys, EMPTY_ROW_N_KEYS)) {
|
|
1282
1291
|
chart_series.forEach((series, seriesIndex) => {
|
|
1283
1292
|
const savedSeriesOption = lodash.find(opts.comboOptions.seriesOptions, {series: series.name});
|
|
@@ -1316,6 +1325,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1316
1325
|
totalSeries.className = 'totalSeries';
|
|
1317
1326
|
totalSeries.name = 'Total';
|
|
1318
1327
|
totalSeries.data = [];
|
|
1328
|
+
|
|
1329
|
+
if (colors && colors[i]) {
|
|
1330
|
+
totalSeries.color = colors[i];
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1319
1333
|
col_n_keys.forEach(columnKey => {
|
|
1320
1334
|
let key = columnKey;
|
|
1321
1335
|
let totalKey = columnKey;
|