@datarailsshared/dr_renderer 1.2.273 → 1.2.274
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 +34 -3
package/package.json
CHANGED
|
@@ -2504,6 +2504,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
2504
2504
|
};
|
|
2505
2505
|
}
|
|
2506
2506
|
|
|
2507
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
2508
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
2509
|
+
|
|
2507
2510
|
chartOptions.tooltip = {
|
|
2508
2511
|
formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
|
|
2509
2512
|
valueDecimals: 2,
|
|
@@ -2583,6 +2586,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
2583
2586
|
};
|
|
2584
2587
|
}
|
|
2585
2588
|
|
|
2589
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
2590
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
2591
|
+
|
|
2586
2592
|
chartOptions.tooltip = {
|
|
2587
2593
|
formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
|
|
2588
2594
|
valueDecimals: 2,
|
|
@@ -2675,6 +2681,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
2675
2681
|
};
|
|
2676
2682
|
}
|
|
2677
2683
|
|
|
2684
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
2685
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
2686
|
+
|
|
2678
2687
|
chartOptions.tooltip = {
|
|
2679
2688
|
formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
|
|
2680
2689
|
valueDecimals: 2,
|
|
@@ -2951,6 +2960,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
2951
2960
|
}
|
|
2952
2961
|
};
|
|
2953
2962
|
}
|
|
2963
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
2964
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
2954
2965
|
|
|
2955
2966
|
chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
|
|
2956
2967
|
|
|
@@ -3084,6 +3095,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3084
3095
|
}
|
|
3085
3096
|
};
|
|
3086
3097
|
}
|
|
3098
|
+
|
|
3099
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
3100
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
3101
|
+
|
|
3087
3102
|
chartOptions.xAxis = {
|
|
3088
3103
|
type: 'category',
|
|
3089
3104
|
crosshair: true,
|
|
@@ -3265,6 +3280,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3265
3280
|
}
|
|
3266
3281
|
};
|
|
3267
3282
|
}
|
|
3283
|
+
|
|
3284
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
3285
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
3286
|
+
|
|
3268
3287
|
chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
|
|
3269
3288
|
|
|
3270
3289
|
return highchartsRenderer.ptCreateElementAndDraw(chartOptions, opts);
|
|
@@ -3343,6 +3362,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3343
3362
|
};
|
|
3344
3363
|
}
|
|
3345
3364
|
|
|
3365
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
3366
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
3367
|
+
|
|
3346
3368
|
chartOptions.xAxis = {
|
|
3347
3369
|
categories: pivotData.getColKeys(),
|
|
3348
3370
|
title: {
|
|
@@ -3452,6 +3474,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3452
3474
|
};
|
|
3453
3475
|
}
|
|
3454
3476
|
|
|
3477
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
3478
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
3479
|
+
|
|
3455
3480
|
chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
|
|
3456
3481
|
chartOptions.legend.useHTML = true;
|
|
3457
3482
|
chartOptions.legend.labelFormatter = function() {
|
|
@@ -3567,6 +3592,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3567
3592
|
}
|
|
3568
3593
|
};
|
|
3569
3594
|
}
|
|
3595
|
+
|
|
3596
|
+
chartOptions.plotOptions.series.point.events.mouseOver = opts.insightsTooltipFunc;
|
|
3597
|
+
chartOptions.plotOptions.series.point.events.mouseOut = opts.insightsTooltipFunc;
|
|
3598
|
+
|
|
3570
3599
|
if (waterfallOptions.colors) {
|
|
3571
3600
|
chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
|
|
3572
3601
|
chartOptions.legend.useHTML = true;
|
|
@@ -5259,7 +5288,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5259
5288
|
options.chartOptions = lodash.merge(defaultOptions, options.chartOptions);
|
|
5260
5289
|
};
|
|
5261
5290
|
|
|
5262
|
-
highchartsRenderer.addPivotOptions = function (selectedTemplateWOData, widgetOptions, drilldownFunction, drillDownListFunction) {
|
|
5291
|
+
highchartsRenderer.addPivotOptions = function (selectedTemplateWOData, widgetOptions, drilldownFunction, drillDownListFunction, insightsTooltipFunction) {
|
|
5263
5292
|
// Check if not rendered data, than it will render
|
|
5264
5293
|
|
|
5265
5294
|
var fields = highchartsRenderer.objectCopyJsonMethod(selectedTemplateWOData.fields);
|
|
@@ -5269,6 +5298,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5269
5298
|
var valuesFields = [];
|
|
5270
5299
|
var drilldownFunc = drilldownFunction;
|
|
5271
5300
|
var drillDownListFunc = drillDownListFunction;
|
|
5301
|
+
var insightsTooltipFunc = insightsTooltipFunction;
|
|
5272
5302
|
|
|
5273
5303
|
// fill value fields
|
|
5274
5304
|
lodash.forEach(widgetOptions.vals, function (valObj) {
|
|
@@ -5323,7 +5353,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5323
5353
|
widgetOptions.pivot.valuesArray = valuesFields;
|
|
5324
5354
|
widgetOptions.pivot.chartType = widgetOptions.chart_type;
|
|
5325
5355
|
widgetOptions.pivot.chartOptions = widgetOptions.options;
|
|
5326
|
-
widgetOptions.pivot.chartRender = highchartsRenderer.getChartRendererFunction(widgetOptions.pivot.chartType, drilldownFunc, drillDownListFunc);
|
|
5356
|
+
widgetOptions.pivot.chartRender = highchartsRenderer.getChartRendererFunction(widgetOptions.pivot.chartType, drilldownFunc, drillDownListFunc, insightsTooltipFunc);
|
|
5327
5357
|
|
|
5328
5358
|
// TODO: remove this logic after BE sort is implemented
|
|
5329
5359
|
// it is required to do sort by totals for comparative analysis - we need to change deltas if columns swaped vice versa
|
|
@@ -5853,7 +5883,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5853
5883
|
return toReturn;
|
|
5854
5884
|
};
|
|
5855
5885
|
|
|
5856
|
-
highchartsRenderer.getChartRendererFunction = function (newChartType, drilldownFunc, drillDownListFunc) {
|
|
5886
|
+
highchartsRenderer.getChartRendererFunction = function (newChartType, drilldownFunc, drillDownListFunc, insightsTooltipFunc) {
|
|
5857
5887
|
var fnToReturn = null;
|
|
5858
5888
|
|
|
5859
5889
|
if (newChartType == highchartsRenderer.richTextSubType.type) {
|
|
@@ -5881,6 +5911,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
5881
5911
|
opt = {};
|
|
5882
5912
|
}
|
|
5883
5913
|
opt.drillDownListFunc = drillDownListFunc;
|
|
5914
|
+
opt.insightsTooltipFunc = insightsTooltipFunc;
|
|
5884
5915
|
} else {
|
|
5885
5916
|
opt.drillDownListFunc = null;
|
|
5886
5917
|
}
|