@datarailsshared/dr_renderer 1.2.95 → 1.2.98

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.95",
3
+ "version": "1.2.98",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -330,7 +330,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
330
330
  chart = chartElement.highcharts();
331
331
  } else {
332
332
  const graphId = Number(graph_id.split('_')[1]);
333
- chart = lodash.find(window.Highcharts.charts, function(value) {
333
+ chart = lodash.find(Highcharts.charts, function(value) {
334
334
  return value.options.widgetId === graphId;
335
335
  });
336
336
  }
@@ -6771,6 +6771,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6771
6771
  tooltip = ''
6772
6772
  }
6773
6773
 
6774
+ all_vals = highchartsRenderer.decodeFunc(all_vals);
6775
+ tooltip = highchartsRenderer.decodeFunc(tooltip);
6776
+
6774
6777
  return {
6775
6778
  label: displayname + all_vals,
6776
6779
  tooltip: displayname + tooltip
@@ -6808,6 +6811,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6808
6811
  all_vals = ' (All)';
6809
6812
  }
6810
6813
 
6814
+ all_vals = highchartsRenderer.decodeFunc(all_vals);
6815
+ tooltip = highchartsRenderer.decodeFunc(tooltip);
6816
+
6811
6817
  return {
6812
6818
  label: displayname + all_vals,
6813
6819
  tooltip: displayname + tooltip
@@ -6877,9 +6883,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6877
6883
  ret['values'] = element.datetypevalues;
6878
6884
  else {
6879
6885
  ret['values'] = element['includes'] || element['excludes'] || [];
6880
- ret['values'] = ret['values'].filter(function (n) {
6886
+ ret['values'] = lodash.isArray(ret['values']) ? ret['values'].filter(function (n) {
6881
6887
  return n != undefined
6882
- });
6888
+ }) : ret['values'];
6883
6889
  }
6884
6890
  ret['is_excluded'] = element.hasOwnProperty('excludes') && element.excludes != null;
6885
6891
  ret['allow_nulls'] = element.hasOwnProperty('allow_nulls') ? element.allow_nulls : false;
package/src/pivot.css CHANGED
@@ -24,6 +24,11 @@ table.pvtTable thead tr th, table.pvtTable tbody tr th {
24
24
  font-weight: 700;
25
25
  }
26
26
 
27
+ table.pvtTable thead tr th > i,
28
+ table.pvtTable tbody tr th > i {
29
+ font-size: 10px;
30
+ }
31
+
27
32
  table.pvtTable .pvtColLabel {text-align: center;}
28
33
  table.pvtTable .pvtTotalLabel {text-align: right;}
29
34