@datarailsshared/dr_renderer 1.2.350 → 1.2.352
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
@@ -144,7 +144,6 @@ const FEATURES = {
|
|
144
144
|
ENABLE_SERVER_TOTALS_CALCULATION: 'enable_server_totals_calculation',
|
145
145
|
FORMAT_AXIS: 'use_default_table_format_for_axis',
|
146
146
|
FORMAT_DATES_AS_OTHER_AXIS_TYPES: 'format_dates_as_other_axis_types',
|
147
|
-
DASHBOARD_INSIGHT_TOOLTIP_RELATIVE_POSITION: 'dashboard_insight_tooltip_relative_position',
|
148
147
|
MULTIPLE_DIMENSION_TAGS: 'multiple_dimension_tags',
|
149
148
|
USE_NEW_SCENARIO_TAG: 'use_new_scenario_tag',
|
150
149
|
}
|
@@ -179,7 +178,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
179
178
|
|
180
179
|
highchartsRenderer.useTotalsCalculation = false;
|
181
180
|
highchartsRenderer.enabledNewWidgetValueFormatting = false;
|
182
|
-
highchartsRenderer.relativePositionForInsightTooltips = false;
|
183
181
|
let disableAnimation = false;
|
184
182
|
|
185
183
|
highchartsRenderer.hasFeature = function(featureFlagKey) {
|
@@ -190,7 +188,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
190
188
|
highchartsRenderer.useTotalsCalculation = highchartsRenderer.hasFeature(FEATURES.ENABLE_SERVER_TOTALS_CALCULATION);
|
191
189
|
disableAnimation = document.ReportHippo.user.organization && document.ReportHippo.user.organization.settings && document.ReportHippo.user.organization.settings.disable_animation
|
192
190
|
highchartsRenderer.enabledNewWidgetValueFormatting = highchartsRenderer.hasFeature(FEATURES.ENABLE_NEW_WIDGET_VALUE_FORMATTING);
|
193
|
-
highchartsRenderer.relativePositionForInsightTooltips = highchartsRenderer.hasFeature(FEATURES.DASHBOARD_INSIGHT_TOOLTIP_RELATIVE_POSITION);
|
194
191
|
}
|
195
192
|
|
196
193
|
// fix issue of use tootip.stickOnContact with tooltip.outside , source: https://github.com/highcharts/highcharts/pull/15960
|
@@ -695,7 +692,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
695
692
|
highchartsRenderer.customFormatterTooltipInsights = function(pivotData, opts) {
|
696
693
|
return {
|
697
694
|
useHTML: true,
|
698
|
-
outside:
|
695
|
+
outside: true,
|
699
696
|
backgroundColor: 'transparent',
|
700
697
|
borderWidth: 0,
|
701
698
|
borderRadius: 0,
|
@@ -8993,6 +8990,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
8993
8990
|
let templateNoData = lodash.find(templates, {id: widget_obj.template_id});
|
8994
8991
|
if (templateNoData) {
|
8995
8992
|
|
8993
|
+
lodash.forEach(templateNoData.fields, field => {
|
8994
|
+
field.name = highchartsRenderer.decodeFunc(field.name);
|
8995
|
+
});
|
8996
|
+
|
8996
8997
|
// we need to assign this before calling getWidgetDataSorters method
|
8997
8998
|
// other way we won't get dateValuesDictionary
|
8998
8999
|
// preserved condition templateNoData == true - not to interfere with further logic
|