@datarailsshared/dr_renderer 1.2.78 → 1.2.79

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.78",
3
+ "version": "1.2.79",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -440,7 +440,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
440
440
  rows = [];
441
441
  }
442
442
 
443
- if (pivotData.rowAttrs.length == 0) {
443
+ if (pivotData.rowAttrs.length == 0
444
+ || this.series.options.className === 'totalSeries'
445
+ || this.series.options.className === 'trendSeries') {
444
446
  rows = [];
445
447
  }
446
448
  var cols = this.key;
@@ -533,7 +535,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
533
535
  if (is_drill_down_pie && highchartsRenderer.selfStartsWith(series_name,"Series ")) {
534
536
  rows = [];
535
537
  }
536
- if (pivotData.rowAttrs.length == 0) {
538
+ if (pivotData.rowAttrs.length == 0
539
+ || this.series.options.className === 'totalSeries'
540
+ || this.series.options.className === 'trendSeries') {
537
541
  rows = [];
538
542
  }
539
543
  var cols = this.key;
@@ -980,6 +984,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
980
984
  const b = ((n * xySum) - (xSum* ySum)) / ((n * squareXSum) - (xSum * xSum));
981
985
 
982
986
  const trendSeries = lodash.clone(chart_series[chart_series.length - 1]);
987
+ trendSeries.className = 'trendSeries';
983
988
  trendSeries.name = 'Trend Line (' + trendSeries.name + ')';
984
989
  trendSeries.dashStyle = 'shortdot';
985
990
  trendSeries.type = 'line';
@@ -1026,6 +1031,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1026
1031
  if (opts.totalSeriesSettings) {
1027
1032
  newSeries.yAxis = opts.totalSeriesSettings.secondaryAxis ? 1 : undefined;
1028
1033
  }
1034
+ newSeries.className = 'totalSeries';
1029
1035
  newSeries.name = 'Total';
1030
1036
  newSeries.data = [];
1031
1037
  col_n_keys.forEach(columnKey => {
@@ -1145,6 +1151,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1145
1151
  const b = ((n * xySum) - (xSum* ySum)) / ((n * squareXSum) - (xSum * xSum));
1146
1152
 
1147
1153
  const trendSeries = lodash.clone(chart_series[chart_series.length - 1]);
1154
+ trendSeries.className = 'trendSeries';
1148
1155
  trendSeries.name = 'Trend Line (' + trendSeries.name + ')';
1149
1156
  trendSeries.dashStyle = 'shortdot';
1150
1157
  trendSeries.type = 'line';
@@ -1206,6 +1213,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1206
1213
  }
1207
1214
  }
1208
1215
 
1216
+ totalSeries.className = 'totalSeries';
1209
1217
  totalSeries.name = 'Total';
1210
1218
  totalSeries.data = [];
1211
1219
  col_n_keys.forEach(columnKey => {