@datarailsshared/dr_renderer 1.2.131 → 1.2.133
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 +19 -4
package/package.json
CHANGED
|
@@ -6057,7 +6057,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6057
6057
|
element_type: 'input',
|
|
6058
6058
|
value_name: 'label_step',
|
|
6059
6059
|
element_label: 'Label step',
|
|
6060
|
-
default_value: null
|
|
6060
|
+
default_value: null,
|
|
6061
|
+
label_tooltip: 'Show indicators at custom numeric interval'
|
|
6061
6062
|
},
|
|
6062
6063
|
{
|
|
6063
6064
|
element_type: 'checkbox',
|
|
@@ -7366,7 +7367,21 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7366
7367
|
return dashboardsFilters;
|
|
7367
7368
|
};
|
|
7368
7369
|
|
|
7369
|
-
highchartsRenderer.
|
|
7370
|
+
highchartsRenderer.getPresentationTagType = function (data_model, local_current_dashboard) {
|
|
7371
|
+
if (local_current_dashboard == undefined) {
|
|
7372
|
+
local_current_dashboard = data_model.current_dashboard;
|
|
7373
|
+
}
|
|
7374
|
+
|
|
7375
|
+
if (local_current_dashboard.date_tags.length > 0) {
|
|
7376
|
+
return 'date_tags';
|
|
7377
|
+
}
|
|
7378
|
+
|
|
7379
|
+
if (local_current_dashboard.plan_tags.length > 0) {
|
|
7380
|
+
return 'plan_tags';
|
|
7381
|
+
}
|
|
7382
|
+
};
|
|
7383
|
+
|
|
7384
|
+
highchartsRenderer.getPresentationDataTag = function (data_model, local_current_dashboard, dataKeyTag = 'date_tags') {
|
|
7370
7385
|
let presentation_data_tag = null;
|
|
7371
7386
|
|
|
7372
7387
|
if (local_current_dashboard == undefined) {
|
|
@@ -7376,8 +7391,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7376
7391
|
if (local_current_dashboard && local_current_dashboard.presentation_data_tag_object) {
|
|
7377
7392
|
presentation_data_tag = local_current_dashboard.presentation_data_tag_object.value;
|
|
7378
7393
|
}
|
|
7379
|
-
else if(local_current_dashboard && local_current_dashboard
|
|
7380
|
-
local_current_dashboard.presentation_data_tag_object = lodash.clone(lodash.maxBy(local_current_dashboard
|
|
7394
|
+
else if(local_current_dashboard && local_current_dashboard[dataKeyTag] && local_current_dashboard[dataKeyTag].length > 0){
|
|
7395
|
+
local_current_dashboard.presentation_data_tag_object = lodash.clone(lodash.maxBy(local_current_dashboard[dataKeyTag], 'value'));
|
|
7381
7396
|
if(local_current_dashboard.presentation_data_tag_object){
|
|
7382
7397
|
presentation_data_tag = local_current_dashboard.presentation_data_tag_object.value;
|
|
7383
7398
|
}
|