@datarailsshared/dr_renderer 1.2.406 → 1.2.407

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.406",
3
+ "version": "1.2.407",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -1135,8 +1135,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1135
1135
  has_delta = true;
1136
1136
  }
1137
1137
 
1138
- if (row_n_keys.length == 0)
1139
- row_n_keys.push([]);
1138
+ lodash.forEach([col_n_keys, row_n_keys], keysArray => {
1139
+ if (keysArray && !keysArray.length) {
1140
+ keysArray.push([]);
1141
+ }
1142
+ });
1140
1143
 
1141
1144
  var i = 0;
1142
1145
  var variat_serias = null;
@@ -2422,10 +2425,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2422
2425
  }
2423
2426
  var uniqueVals = kpioptions.value.value == "Unique";
2424
2427
 
2425
- if (!pivotData.colKeys.length) {
2426
- pivotData.colKeys.push([]);
2427
- }
2428
-
2429
2428
  let temp_series = highchartsRenderer.ptCreateBasicLineSeries(pivotData, null, true, uniqueVals, null, opts, chartOptions);
2430
2429
 
2431
2430
  var total = [];