@datarailsshared/dr_renderer 1.2.399 → 1.2.401

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.399",
3
+ "version": "1.2.401",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -158,11 +158,6 @@ let initDRPivotTable = function($, window, document) {
158
158
  return key;
159
159
  };
160
160
 
161
- DRPivotData.prototype.getInsight = function(colKey, rowKey) {
162
- const key = [rowKey, colKey].join(delim);
163
- return this.insights.get(key);
164
- }
165
-
166
161
  DRPivotData.prototype.getAttrsKeys = function(record, attrs) {
167
162
  const keys = [];
168
163
  for (let k = 0; k < attrs.length; k++) {
@@ -179,53 +174,7 @@ let initDRPivotTable = function($, window, document) {
179
174
  return keys.join(delim);
180
175
  }
181
176
 
182
- DRPivotData.prototype.buildInsights = function(rows, useServerTotalsCalculation) {
183
- for (let index = 0; index < rows.length; index++) {
184
- const record = rows[index];
185
- const insight = record.insight;
186
- delete record.insight;
187
-
188
- if (!insight) continue;
189
-
190
- if (useServerTotalsCalculation) {
191
- const flatRowKey = this.getFlatKey(record, this.rowAttrs);
192
- const flatColKey = this.getFlatKey(record, this.colAttrs);
193
-
194
- if (flatRowKey || flatColKey) {
195
- this.insights.set([flatRowKey, flatColKey].join(delim), insight);
196
- }
197
- continue;
198
- }
199
-
200
- const recordValues = _.values(record);
201
- const containsAverage = _.includes(recordValues, 'DR_Average');
202
- const containsOthers = _.includes(recordValues, 'DR_Others');
203
-
204
- const rowKey = processKey(record, this.rowTotals, this.rowKeys, this.rowAttrs, containsAverage, containsOthers, (function(_this) {
205
- return function(key) {
206
- return _this.aggregator(_this, key, []);
207
- };
208
- })(this));
209
-
210
- const colKey = processKey(record, this.colTotals, this.colKeys, this.colAttrs, containsAverage, containsOthers, (function(_this) {
211
- return function(key) {
212
- return _this.aggregator(_this, [], key);
213
- };
214
- })(this));
215
-
216
- const flatRowKey = rowKey.join(delim);
217
- const flatColKey = colKey.join(delim);
218
-
219
- if (flatRowKey || flatColKey) {
220
- this.insights.set([flatRowKey, flatColKey].join(delim), insight);
221
- }
222
- }
223
- }
224
-
225
177
  DRPivotData.prototype.processRecord = function(record, useTotalsCalculation) {
226
- const insight = record.insight;
227
- delete record.insight;
228
-
229
178
  if (useTotalsCalculation) {
230
179
  if (!this.notFirst) {
231
180
  this.keysLength = _.filter(_.keys(record), key => !_.includes(['data_types', 'formats', 'values_formats'], key)).length - 1;
@@ -277,9 +226,6 @@ let initDRPivotTable = function($, window, document) {
277
226
  this.tree[flatRowKey][flatColKey].push(record);
278
227
  }
279
228
 
280
- if (insight && (flatRowKey || flatColKey)) {
281
- this.insights.set([flatRowKey, flatColKey].join(delim), insight);
282
- }
283
229
  return;
284
230
  }
285
231
 
@@ -303,15 +249,6 @@ let initDRPivotTable = function($, window, document) {
303
249
  };
304
250
  })(this));
305
251
 
306
- if (insight) {
307
- const flatRowKeyForInsight = rowKey.join(delim);
308
- const flatColKeyForInsight = colKey.join(delim);
309
-
310
- if (flatRowKeyForInsight || flatColKeyForInsight) {
311
- this.insights.set([flatRowKeyForInsight, flatColKeyForInsight].join(delim), insight);
312
- }
313
- }
314
-
315
252
  m = rowKey.length - 1;
316
253
  n = colKey.length - 1;
317
254
  if (m < 0 || n < 0) {
@@ -15,7 +15,6 @@
15
15
 
16
16
  /**
17
17
  * @typedef {Object} PivotModel
18
- * @property {(rows: Rows, useTotalsCalculation: boolean) => void} buildInsights
19
18
  */
20
19
 
21
20
  /**
@@ -713,33 +713,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
713
713
  return func;
714
714
  };
715
715
 
716
- highchartsRenderer.customFormatterTooltipInsights = function(pivotData, opts) {
717
- return {
718
- useHTML: true,
719
- outside: true,
720
- backgroundColor: 'transparent',
721
- borderWidth: 0,
722
- borderRadius: 0,
723
- shadow: false,
724
- shape: 'square',
725
- padding: 0,
726
- stickOnContact: true,
727
- hideDelay: 300,
728
- destroyWhenHiding: true,
729
- formatter: function () {
730
- const rowKey = pivotData.rowAttrs.length ? lodash.get(this.point, 'series.name') || "" : "";
731
- const colKey = lodash.get(this.point, 'initialName') || lodash.get(this.point, 'name') || this.x.name[0] || "";
732
-
733
- const insight = pivotData.getInsight(colKey, rowKey) || {};
734
- setTimeout(() => {
735
- var aggr = highchartsRenderer.defaultFormatterToTooltip(pivotData, opts);
736
- const formatted_value_to_return = aggr.bind(this)();
737
- opts.insightsTooltipFunc(lodash.merge(lodash.cloneDeep(this), { formatted_value_to_return }, insight));
738
- });
739
- }
740
- }
741
- }
742
-
743
716
  highchartsRenderer.defaultFormatterToTooltip = function (pivotData, opts, is_drill_down_pie) {
744
717
  var variant_name = null;
745
718
  var variant_name_default_name = null;
@@ -1471,7 +1444,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1471
1444
  }
1472
1445
  }
1473
1446
 
1474
- let weights = { line: 2,spline: 3 ,area:-2, areaspline: -1, scatter:4, column: 1 };
1475
1447
  if (opts.comboOptions && lodash.includes(chartType,'combo') && !lodash.isEqual(row_n_keys, EMPTY_ROW_N_KEYS)) {
1476
1448
  chart_series.forEach((series, seriesIndex) => {
1477
1449
  const savedSeriesOption = lodash.find(opts.comboOptions.seriesOptions, {series: series.name});
@@ -1538,10 +1510,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1538
1510
 
1539
1511
  highchartsRenderer.moveSeriesToSecondYAxisIfNeeded(chart_series, pivotData, chartOptions, additionOptions, opts, opts.total && opts.totalSeriesSettings && opts.totalSeriesSettings.secondaryAxis);
1540
1512
 
1541
- chart_series.sort((a,b) => {
1542
- return (weights[a.type] || 0) > (weights[b.type] || 0) ? 1 : (weights[a.type] || 0) < (weights[b.type] || 0) ? -1 : 0
1543
- });
1544
-
1545
1513
  return chart_series;
1546
1514
  }
1547
1515
 
@@ -2684,17 +2652,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2684
2652
  };
2685
2653
  }
2686
2654
 
2687
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2688
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2689
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2690
- }
2691
-
2692
- chartOptions.tooltip = opts.insightsTooltipFunc
2693
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
2694
- : {
2695
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2696
- valueDecimals: 2,
2697
- };
2655
+ chartOptions.tooltip = {
2656
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2657
+ valueDecimals: 2,
2658
+ };
2698
2659
 
2699
2660
  chartOptions.xAxis = {
2700
2661
  categories: highchartsRenderer.getFormattedColKeys(pivotData, null),
@@ -2770,11 +2731,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2770
2731
  };
2771
2732
  }
2772
2733
 
2773
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2774
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2775
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2776
- }
2777
-
2778
2734
  chartOptions.tooltip = {
2779
2735
  formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2780
2736
  valueDecimals: 2,
@@ -2867,11 +2823,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2867
2823
  };
2868
2824
  }
2869
2825
 
2870
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2871
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2872
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2873
- }
2874
-
2875
2826
  chartOptions.tooltip = {
2876
2827
  formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2877
2828
  valueDecimals: 2,
@@ -3108,12 +3059,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3108
3059
  }
3109
3060
 
3110
3061
 
3111
- chartOptions.tooltip = opts.insightsTooltipFunc
3112
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3113
- : {
3114
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3115
- valueDecimals: 2,
3116
- };
3062
+ chartOptions.tooltip = {
3063
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3064
+ valueDecimals: 2,
3065
+ };
3117
3066
 
3118
3067
  highchartsRenderer.handleGridLines(additionOptions, chartOptions);
3119
3068
 
@@ -3153,11 +3102,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3153
3102
  };
3154
3103
  }
3155
3104
 
3156
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3157
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3158
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3159
- }
3160
-
3161
3105
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3162
3106
 
3163
3107
  chartOptions.drilldown = highchartsRenderer.getDataLabelsStylesForDrillDown(additionOptions);
@@ -3241,12 +3185,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3241
3185
 
3242
3186
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3243
3187
 
3244
- chartOptions.tooltip = opts.insightsTooltipFunc
3245
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3246
- : {
3247
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3248
- valueDecimals: 2,
3249
- };
3188
+ chartOptions.tooltip = {
3189
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3190
+ valueDecimals: 2,
3191
+ };
3250
3192
 
3251
3193
  if (additionOptions && additionOptions.chart) {
3252
3194
  chartOptions.colors = highchartsRenderer.getColorsWithOffset(additionOptions.chart.colors_offset);
@@ -3287,11 +3229,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3287
3229
  };
3288
3230
  }
3289
3231
 
3290
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3291
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3292
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3293
- }
3294
-
3295
3232
  chartOptions.xAxis = {
3296
3233
  type: 'category',
3297
3234
  crosshair: true,
@@ -3428,12 +3365,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3428
3365
  if (additionOptions) {
3429
3366
  highchartsRenderer.setYAxisMinMax(chartOptions.yAxis, additionOptions.axisY);
3430
3367
  }
3431
- chartOptions.tooltip = opts.insightsTooltipFunc
3432
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3433
- : {
3434
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3435
- valueDecimals: 2,
3436
- };
3368
+ chartOptions.tooltip = {
3369
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3370
+ valueDecimals: 2,
3371
+ };
3437
3372
 
3438
3373
  if (additionOptions && additionOptions.chart) {
3439
3374
  chartOptions.colors = highchartsRenderer.getColorsWithOffset(additionOptions.chart.colors_offset);
@@ -3479,11 +3414,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3479
3414
  };
3480
3415
  }
3481
3416
 
3482
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3483
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3484
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3485
- }
3486
-
3487
3417
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3488
3418
 
3489
3419
  return highchartsRenderer.ptCreateElementAndDraw(chartOptions, opts);
@@ -3542,11 +3472,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3542
3472
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3543
3473
  chartOptions.legend.reversed = true;
3544
3474
 
3545
- chartOptions.tooltip = opts.insightsTooltipFunc
3546
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3547
- : {
3548
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts)
3549
- };
3475
+ chartOptions.tooltip = {
3476
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts)
3477
+ };
3550
3478
 
3551
3479
  if (additionOptions && additionOptions.chart) {
3552
3480
  chartOptions.colors = highchartsRenderer.getColorsWithOffset(additionOptions.chart.colors_offset);
@@ -3568,11 +3496,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3568
3496
  };
3569
3497
  }
3570
3498
 
3571
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3572
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3573
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3574
- }
3575
-
3576
3499
  chartOptions.xAxis = {
3577
3500
  categories: highchartsRenderer.getFormattedColKeys(pivotData, null),
3578
3501
  title: {
@@ -3684,11 +3607,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3684
3607
  };
3685
3608
  }
3686
3609
 
3687
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3688
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3689
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3690
- }
3691
-
3692
3610
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
3693
3611
  chartOptions.legend.useHTML = true;
3694
3612
  chartOptions.legend.labelFormatter = function() {
@@ -3805,11 +3723,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3805
3723
  };
3806
3724
  }
3807
3725
 
3808
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3809
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3810
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3811
- }
3812
-
3813
3726
  if (waterfallOptions.colors) {
3814
3727
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
3815
3728
  chartOptions.legend.useHTML = true;
@@ -5535,7 +5448,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5535
5448
  options.chartOptions = lodash.merge(defaultOptions, options.chartOptions);
5536
5449
  };
5537
5450
 
5538
- highchartsRenderer.addPivotOptions = function (selectedTemplateWOData, widgetOptions, drilldownFunction, drillDownListFunction, insightsTooltipFunction, trackUserInsightsTooltipFunction) {
5451
+ highchartsRenderer.addPivotOptions = function (selectedTemplateWOData, widgetOptions, drilldownFunction, drillDownListFunction) {
5539
5452
  // Check if not rendered data, than it will render
5540
5453
 
5541
5454
  var fields = highchartsRenderer.objectCopyJsonMethod(selectedTemplateWOData.fields);
@@ -5545,8 +5458,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5545
5458
  var valuesFields = [];
5546
5459
  var drilldownFunc = drilldownFunction;
5547
5460
  var drillDownListFunc = drillDownListFunction;
5548
- var insightsTooltipFunc = insightsTooltipFunction;
5549
- var trackUserInsightsTooltipFunc = trackUserInsightsTooltipFunction;
5550
5461
 
5551
5462
  // fill value fields
5552
5463
  lodash.forEach(widgetOptions.vals, function (valObj) {
@@ -5601,7 +5512,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5601
5512
  widgetOptions.pivot.valuesArray = valuesFields;
5602
5513
  widgetOptions.pivot.chartType = widgetOptions.chart_type;
5603
5514
  widgetOptions.pivot.chartOptions = widgetOptions.options;
5604
- widgetOptions.pivot.chartRender = highchartsRenderer.getChartRendererFunction(widgetOptions.pivot.chartType, drilldownFunc, drillDownListFunc, insightsTooltipFunc, trackUserInsightsTooltipFunc);
5515
+ widgetOptions.pivot.chartRender = highchartsRenderer.getChartRendererFunction(widgetOptions.pivot.chartType, drilldownFunc, drillDownListFunc);
5605
5516
 
5606
5517
  if (highchartsRenderer.isSortingOnBackendEnabled) return;
5607
5518
  // TODO: remove this logic after BE sort is implemented
@@ -6130,7 +6041,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6130
6041
  return toReturn;
6131
6042
  };
6132
6043
 
6133
- highchartsRenderer.getChartRendererFunction = function (newChartType, drilldownFunc, drillDownListFunc, insightsTooltipFunc, trackUserInsightsTooltipFunc) {
6044
+ highchartsRenderer.getChartRendererFunction = function (newChartType, drilldownFunc, drillDownListFunc) {
6134
6045
  var fnToReturn = null;
6135
6046
 
6136
6047
  if (newChartType == highchartsRenderer.richTextSubType.type) {
@@ -6161,8 +6072,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6161
6072
  highchartsRenderer.modifyEventPointForDrilldown(e, pivotData);
6162
6073
  drillDownListFunc(e);
6163
6074
  };
6164
- opt.insightsTooltipFunc = insightsTooltipFunc;
6165
- opt.trackUserInsightsTooltipFunc = trackUserInsightsTooltipFunc;
6166
6075
  } else {
6167
6076
  opt.drillDownListFunc = null;
6168
6077
  }
package/src/pivottable.js CHANGED
@@ -688,7 +688,6 @@ let initPivotTable = function($, window, document) {
688
688
  return true;
689
689
  });
690
690
  this.tree = {};
691
- this.insights = new Map();
692
691
 
693
692
  this.isKeysSortingDoneOnBackendSide = opts.keysObject && typeof opts.keysObject === 'object' && helpers.backendSortingKeysAreNotEmpty(opts.keysObject);
694
693
  if (this.isKeysSortingDoneOnBackendSide) {
@@ -6475,24 +6475,24 @@ describe('highcharts_renderer', () => {
6475
6475
  {
6476
6476
  initialName: 'col 1',
6477
6477
  name: 'col 1',
6478
- y: 123450,
6478
+ y: 12345,
6479
6479
  drilldown: true
6480
6480
  },
6481
6481
  {
6482
6482
  initialName: 'col 2',
6483
6483
  name: 'col 2',
6484
- y: 11111,
6484
+ y: 54321,
6485
6485
  drilldown: true
6486
6486
  },
6487
6487
  {
6488
6488
  initialName: 'Others',
6489
6489
  name: 'Others',
6490
- y: 99991,
6490
+ y: 99999,
6491
6491
  drilldown: true
6492
6492
  }
6493
6493
  ],
6494
- initialName: 'row 2',
6495
- name: 'row 2',
6494
+ initialName: 'row 1',
6495
+ name: 'row 1',
6496
6496
  dataLabels: {
6497
6497
  style: {
6498
6498
  fontSize: '11',
@@ -6504,31 +6504,36 @@ describe('highcharts_renderer', () => {
6504
6504
  enabled: true,
6505
6505
  formatter: expect.any(Function)
6506
6506
  },
6507
- color: '#b3060e'
6507
+ color: '#5ecfb9',
6508
+ type: 'line',
6509
+ lineColor: '#5ecfb9',
6510
+ marker: {
6511
+ lineColor: '#5ecfb9'
6512
+ }
6508
6513
  },
6509
6514
  {
6510
6515
  data: [
6511
6516
  {
6512
6517
  initialName: 'col 1',
6513
6518
  name: 'col 1',
6514
- y: 12345,
6519
+ y: 123450,
6515
6520
  drilldown: true
6516
6521
  },
6517
6522
  {
6518
6523
  initialName: 'col 2',
6519
6524
  name: 'col 2',
6520
- y: 54321,
6525
+ y: 11111,
6521
6526
  drilldown: true
6522
6527
  },
6523
6528
  {
6524
6529
  initialName: 'Others',
6525
6530
  name: 'Others',
6526
- y: 99999,
6531
+ y: 99991,
6527
6532
  drilldown: true
6528
6533
  }
6529
6534
  ],
6530
- initialName: 'row 1',
6531
- name: 'row 1',
6535
+ initialName: 'row 2',
6536
+ name: 'row 2',
6532
6537
  dataLabels: {
6533
6538
  style: {
6534
6539
  fontSize: '11',
@@ -6540,13 +6545,8 @@ describe('highcharts_renderer', () => {
6540
6545
  enabled: true,
6541
6546
  formatter: expect.any(Function)
6542
6547
  },
6543
- color: '#5ecfb9',
6544
- type: 'line',
6545
- lineColor: '#5ecfb9',
6546
- marker: {
6547
- lineColor: '#5ecfb9'
6548
- }
6549
- }
6548
+ color: '#b3060e'
6549
+ },
6550
6550
  ]);
6551
6551
  });
6552
6552
  it('should prepare appropriate chart series, when additional options have delta column \'only variant\'', ()=> {
@@ -345,7 +345,6 @@
345
345
  "variance_color": "#3DC5AA"
346
346
  }
347
347
  },
348
- "insightsTooltipFunc": null,
349
348
  "chart_series": [
350
349
  "Actuals"
351
350
  ],
@@ -12,7 +12,6 @@
12
12
  */
13
13
  /**
14
14
  * @typedef {Object} PivotModel
15
- * @property {(rows: Rows, useTotalsCalculation: boolean) => void} buildInsights
16
15
  */
17
16
  /**
18
17
  * @typedef {Object} GTROptions
@@ -57,9 +56,7 @@ export type PivotUtilities = {
57
56
  export type JQuery = {
58
57
  pivotUtilities: PivotUtilities;
59
58
  };
60
- export type PivotModel = {
61
- buildInsights: (rows: Rows, useTotalsCalculation: boolean) => void;
62
- };
59
+ export type PivotModel = Object;
63
60
  export type GTROptions = Object;
64
61
  /**
65
62
  * - BE data response