@datarailsshared/dr_renderer 1.2.304 → 1.2.305

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.304",
3
+ "version": "1.2.305",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -2586,8 +2586,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2586
2586
  };
2587
2587
  }
2588
2588
 
2589
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2590
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2589
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2590
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2591
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2592
+ }
2591
2593
 
2592
2594
  chartOptions.tooltip = opts.insightsTooltipFunc
2593
2595
  ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
@@ -2669,9 +2671,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2669
2671
  }
2670
2672
  };
2671
2673
  }
2672
-
2673
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2674
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2674
+
2675
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2676
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2677
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2678
+ }
2675
2679
 
2676
2680
  chartOptions.tooltip = {
2677
2681
  formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
@@ -2765,8 +2769,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2765
2769
  };
2766
2770
  }
2767
2771
 
2768
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2769
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2772
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2773
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2774
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2775
+ }
2770
2776
 
2771
2777
  chartOptions.tooltip = {
2772
2778
  formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
@@ -3047,8 +3053,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3047
3053
  }
3048
3054
  };
3049
3055
  }
3050
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3051
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3056
+
3057
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3058
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3059
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3060
+ }
3052
3061
 
3053
3062
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3054
3063
 
@@ -3186,8 +3195,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3186
3195
  };
3187
3196
  }
3188
3197
 
3189
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3190
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3198
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3199
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3200
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3201
+ }
3191
3202
 
3192
3203
  chartOptions.xAxis = {
3193
3204
  type: 'category',
@@ -3373,8 +3384,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3373
3384
  };
3374
3385
  }
3375
3386
 
3376
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3377
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3387
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3388
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3389
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3390
+ }
3378
3391
 
3379
3392
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3380
3393
 
@@ -3456,8 +3469,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3456
3469
  };
3457
3470
  }
3458
3471
 
3459
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3460
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3472
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3473
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3474
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3475
+ }
3461
3476
 
3462
3477
  chartOptions.xAxis = {
3463
3478
  categories: pivotData.getColKeys(),
@@ -3568,8 +3583,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3568
3583
  };
3569
3584
  }
3570
3585
 
3571
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3572
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3586
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3587
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3588
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3589
+ }
3573
3590
 
3574
3591
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
3575
3592
  chartOptions.legend.useHTML = true;
@@ -3687,8 +3704,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3687
3704
  };
3688
3705
  }
3689
3706
 
3690
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3691
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3707
+ if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3708
+ chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3709
+ chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3710
+ }
3692
3711
 
3693
3712
  if (waterfallOptions.colors) {
3694
3713
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);