@datarailsshared/dr_renderer 1.2.153-dragons → 1.2.155-dragons
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
|
@@ -425,7 +425,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
425
425
|
const othersName = opts.total_value_options ?
|
|
426
426
|
lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others' :
|
|
427
427
|
undefined;
|
|
428
|
-
var drOthersInColumn = lodash.find(
|
|
428
|
+
var drOthersInColumn = lodash.find(
|
|
429
|
+
pivotData.getColKeys(),
|
|
430
|
+
keys => keys.length && (lodash.includes(keys, 'DR_Others') || lodash.includes(keys, othersName))
|
|
431
|
+
);
|
|
429
432
|
|
|
430
433
|
var func = function () {
|
|
431
434
|
var value = parseFloat(this.y);
|
|
@@ -7780,8 +7783,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7780
7783
|
datesFields = lodash.filter(widget.rows, element => element.type == 'Date');
|
|
7781
7784
|
datesFields = datesFields.concat(lodash.filter(widget.cols, element => element.type == 'Date'));
|
|
7782
7785
|
|
|
7783
|
-
const aggregationConfigs = widget.options
|
|
7784
|
-
if (aggregationConfigs
|
|
7786
|
+
const aggregationConfigs = widget.options ? widget.options.date_aggregation_configs || [] : [];
|
|
7787
|
+
if (aggregationConfigs.length && datesFields && datesFields.length) {
|
|
7785
7788
|
highchartsRenderer.formatDatesWithAggregationIfRequired(aggregationConfigs, datesFields, defaultDateFormat);
|
|
7786
7789
|
}
|
|
7787
7790
|
|
|
@@ -8215,8 +8218,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
8215
8218
|
|
|
8216
8219
|
highchartsRenderer.formatDatesWithAggregationIfRequired = function(aggregationConfigs, datesFields, defaultDateFormat) {
|
|
8217
8220
|
_.forEach(aggregationConfigs, aggregationConfig => {
|
|
8218
|
-
const aggregationTimeframe = aggregationConfig
|
|
8219
|
-
const isFormattingByAggregation = aggregationConfig
|
|
8221
|
+
const aggregationTimeframe = aggregationConfig ? aggregationConfig.aggregate_by : null;
|
|
8222
|
+
const isFormattingByAggregation = aggregationConfig ? aggregationConfig.is_formatting_by_aggregation_method : false;
|
|
8220
8223
|
|
|
8221
8224
|
if (aggregationTimeframe && isFormattingByAggregation) {
|
|
8222
8225
|
const dateField = lodash.find(
|