@datarailsshared/dr_renderer 1.2.128 → 1.2.129
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 +13 -0
package/package.json
CHANGED
|
@@ -7888,6 +7888,19 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7888
7888
|
return sorters;
|
|
7889
7889
|
};
|
|
7890
7890
|
|
|
7891
|
+
highchartsRenderer.getSorters = function (field, values) {
|
|
7892
|
+
if (field.sorting && field.sorting.type === 'DateString') {
|
|
7893
|
+
return $.pivotUtilities.sortDateStrings(field.sorting.month_order);
|
|
7894
|
+
} else if (field.sorting && field.sorting.type === 'largestToSmallest') {
|
|
7895
|
+
if (field.sorting.is_absolute)
|
|
7896
|
+
return $.pivotUtilities.largeToSmallSortByAbsolute;
|
|
7897
|
+
|
|
7898
|
+
return $.pivotUtilities.largeToSmallSort;
|
|
7899
|
+
} else {
|
|
7900
|
+
return $.pivotUtilities.sortAs(values);
|
|
7901
|
+
}
|
|
7902
|
+
};
|
|
7903
|
+
|
|
7891
7904
|
//highchartsRenderer.getGraphOptions(scope.data, override_values, res, scope.dataModel.templatesWithOutData, scope.openDrillDownList, drillDownFunction)
|
|
7892
7905
|
highchartsRenderer.getGraphOptions = function (widget_obj, override_values, row_data, templates, openDrillDownListFunction, drillDownFunction) {
|
|
7893
7906
|
let res = highchartsRenderer.updateSelectedOverrideValues(widget_obj, override_values, row_data);
|