@datarailsshared/dr_renderer 1.2.119 → 1.2.120

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.119",
3
+ "version": "1.2.120",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -7690,6 +7690,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7690
7690
  };
7691
7691
 
7692
7692
  highchartsRenderer.getWidgetDataSorters = function (res, widget, defaultDateFormat) {
7693
+ if ($.pivotUtilities && !$.pivotUtilities.additionalFieldsList) {
7694
+ $.pivotUtilities.additionalFieldsList = [
7695
+ {key: 'DR_Average', name: 'DR_Average'},
7696
+ {key: 'DR_Others', name: _.get(widget.options, "total_value_options.filter_options.filteredOutFieldName") || 'Others'}
7697
+ ];
7698
+ }
7699
+
7693
7700
  var datesFields = [];
7694
7701
  datesFields = lodash.filter(widget.rows, element => element.type == 'Date');
7695
7702
  datesFields = datesFields.concat(lodash.filter(widget.cols, element => element.type == 'Date'));