@datarailsshared/dr_renderer 1.2.377 → 1.2.378
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 +11 -1
package/package.json
CHANGED
@@ -9000,7 +9000,17 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
9000
9000
|
const isTwoColumnComparisonWidget = lodash.get(widget, 'options.breakdown_options.values.totals', []).length === 2;
|
9001
9001
|
lodash.forEach(rowsAndCols, function (field) {
|
9002
9002
|
const waterfallFieldType = field.id === widget.cols[0].id ? 'totals' : 'breakdown';
|
9003
|
-
|
9003
|
+
|
9004
|
+
if (field.type === 'Date') {
|
9005
|
+
|
9006
|
+
// set ascending date orders - due to issue with setting breakdown options order in webclient
|
9007
|
+
// this is for fixing already saved widgets with incorret order in breakdown options
|
9008
|
+
field.sorting = {
|
9009
|
+
is_absolute: false,
|
9010
|
+
sort_by: "field_items",
|
9011
|
+
type: "",
|
9012
|
+
};
|
9013
|
+
} else if (waterfallFieldType !== 'totals' || isTwoColumnComparisonWidget) {
|
9004
9014
|
field.sorting = {
|
9005
9015
|
type: 'CustomOrder',
|
9006
9016
|
values: lodash.map(
|