@datarailsshared/dr_renderer 1.2.400 → 1.2.403

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.400",
3
+ "version": "1.2.403",
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;
@@ -1262,7 +1235,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1262
1235
  trendSeries.name = highchartsRenderer.getTrendSeriesName(trendSeries);
1263
1236
  trendSeries.dashStyle = 'shortdot';
1264
1237
  trendSeries.type = 'line';
1265
- trendSeries.data = trendSeries.data.map((el, index) => a + b * (index + 1));
1238
+ trendSeries.data = trendSeries.data.map(
1239
+ (data, index) => lodash.get(data, 'name')
1240
+ ? { name: data.name, initialName: data.initialName, y: a + b * (index + 1) }
1241
+ : a + b * (index + 1)
1242
+ );
1266
1243
 
1267
1244
  if (colors && colors[i]) {
1268
1245
  trendSeries.color = colors[i];
@@ -1451,7 +1428,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1451
1428
  trendSeries.name = highchartsRenderer.getTrendSeriesName(trendSeries);
1452
1429
  trendSeries.dashStyle = 'shortdot';
1453
1430
  trendSeries.type = 'line';
1454
- trendSeries.data = trendSeries.data.map((data, index) => ({name: data.name, y: a + b * (index + 1)}));
1431
+ trendSeries.data = trendSeries.data.map(
1432
+ (data, index) => ({ name: data.name, initialName: data.initialName, y: a + b * (index + 1) })
1433
+ );
1455
1434
 
1456
1435
  if (colors && colors[i]) {
1457
1436
  trendSeries.color = colors[i];
@@ -2679,17 +2658,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2679
2658
  };
2680
2659
  }
2681
2660
 
2682
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2683
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2684
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2685
- }
2686
-
2687
- chartOptions.tooltip = opts.insightsTooltipFunc
2688
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
2689
- : {
2690
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2691
- valueDecimals: 2,
2692
- };
2661
+ chartOptions.tooltip = {
2662
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2663
+ valueDecimals: 2,
2664
+ };
2693
2665
 
2694
2666
  chartOptions.xAxis = {
2695
2667
  categories: highchartsRenderer.getFormattedColKeys(pivotData, null),
@@ -2765,11 +2737,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2765
2737
  };
2766
2738
  }
2767
2739
 
2768
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2769
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2770
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2771
- }
2772
-
2773
2740
  chartOptions.tooltip = {
2774
2741
  formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2775
2742
  valueDecimals: 2,
@@ -2862,11 +2829,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2862
2829
  };
2863
2830
  }
2864
2831
 
2865
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
2866
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
2867
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
2868
- }
2869
-
2870
2832
  chartOptions.tooltip = {
2871
2833
  formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
2872
2834
  valueDecimals: 2,
@@ -3103,12 +3065,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3103
3065
  }
3104
3066
 
3105
3067
 
3106
- chartOptions.tooltip = opts.insightsTooltipFunc
3107
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3108
- : {
3109
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3110
- valueDecimals: 2,
3111
- };
3068
+ chartOptions.tooltip = {
3069
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3070
+ valueDecimals: 2,
3071
+ };
3112
3072
 
3113
3073
  highchartsRenderer.handleGridLines(additionOptions, chartOptions);
3114
3074
 
@@ -3148,11 +3108,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3148
3108
  };
3149
3109
  }
3150
3110
 
3151
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3152
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3153
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3154
- }
3155
-
3156
3111
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3157
3112
 
3158
3113
  chartOptions.drilldown = highchartsRenderer.getDataLabelsStylesForDrillDown(additionOptions);
@@ -3236,12 +3191,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3236
3191
 
3237
3192
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3238
3193
 
3239
- chartOptions.tooltip = opts.insightsTooltipFunc
3240
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3241
- : {
3242
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3243
- valueDecimals: 2,
3244
- };
3194
+ chartOptions.tooltip = {
3195
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3196
+ valueDecimals: 2,
3197
+ };
3245
3198
 
3246
3199
  if (additionOptions && additionOptions.chart) {
3247
3200
  chartOptions.colors = highchartsRenderer.getColorsWithOffset(additionOptions.chart.colors_offset);
@@ -3282,11 +3235,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3282
3235
  };
3283
3236
  }
3284
3237
 
3285
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3286
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3287
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3288
- }
3289
-
3290
3238
  chartOptions.xAxis = {
3291
3239
  type: 'category',
3292
3240
  crosshair: true,
@@ -3423,12 +3371,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3423
3371
  if (additionOptions) {
3424
3372
  highchartsRenderer.setYAxisMinMax(chartOptions.yAxis, additionOptions.axisY);
3425
3373
  }
3426
- chartOptions.tooltip = opts.insightsTooltipFunc
3427
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3428
- : {
3429
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3430
- valueDecimals: 2,
3431
- };
3374
+ chartOptions.tooltip = {
3375
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts),
3376
+ valueDecimals: 2,
3377
+ };
3432
3378
 
3433
3379
  if (additionOptions && additionOptions.chart) {
3434
3380
  chartOptions.colors = highchartsRenderer.getColorsWithOffset(additionOptions.chart.colors_offset);
@@ -3474,11 +3420,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3474
3420
  };
3475
3421
  }
3476
3422
 
3477
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3478
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3479
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3480
- }
3481
-
3482
3423
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3483
3424
 
3484
3425
  return highchartsRenderer.ptCreateElementAndDraw(chartOptions, opts);
@@ -3537,11 +3478,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3537
3478
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, rowAttrs.length, false);
3538
3479
  chartOptions.legend.reversed = true;
3539
3480
 
3540
- chartOptions.tooltip = opts.insightsTooltipFunc
3541
- ? highchartsRenderer.customFormatterTooltipInsights(pivotData, opts)
3542
- : {
3543
- formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts)
3544
- };
3481
+ chartOptions.tooltip = {
3482
+ formatter: highchartsRenderer.defaultFormatterToTooltip(pivotData, opts)
3483
+ };
3545
3484
 
3546
3485
  if (additionOptions && additionOptions.chart) {
3547
3486
  chartOptions.colors = highchartsRenderer.getColorsWithOffset(additionOptions.chart.colors_offset);
@@ -3563,11 +3502,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3563
3502
  };
3564
3503
  }
3565
3504
 
3566
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3567
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3568
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3569
- }
3570
-
3571
3505
  chartOptions.xAxis = {
3572
3506
  categories: highchartsRenderer.getFormattedColKeys(pivotData, null),
3573
3507
  title: {
@@ -3679,11 +3613,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3679
3613
  };
3680
3614
  }
3681
3615
 
3682
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3683
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3684
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3685
- }
3686
-
3687
3616
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
3688
3617
  chartOptions.legend.useHTML = true;
3689
3618
  chartOptions.legend.labelFormatter = function() {
@@ -3800,11 +3729,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3800
3729
  };
3801
3730
  }
3802
3731
 
3803
- if (lodash.get(chartOptions, 'plotOptions.series.point.events')) {
3804
- chartOptions.plotOptions.series.point.events.mouseOver = opts.trackUserInsightsTooltipFunc;
3805
- chartOptions.plotOptions.series.point.events.mouseOut = opts.trackUserInsightsTooltipFunc;
3806
- }
3807
-
3808
3732
  if (waterfallOptions.colors) {
3809
3733
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 3, false);
3810
3734
  chartOptions.legend.useHTML = true;
@@ -5530,7 +5454,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5530
5454
  options.chartOptions = lodash.merge(defaultOptions, options.chartOptions);
5531
5455
  };
5532
5456
 
5533
- highchartsRenderer.addPivotOptions = function (selectedTemplateWOData, widgetOptions, drilldownFunction, drillDownListFunction, insightsTooltipFunction, trackUserInsightsTooltipFunction) {
5457
+ highchartsRenderer.addPivotOptions = function (selectedTemplateWOData, widgetOptions, drilldownFunction, drillDownListFunction) {
5534
5458
  // Check if not rendered data, than it will render
5535
5459
 
5536
5460
  var fields = highchartsRenderer.objectCopyJsonMethod(selectedTemplateWOData.fields);
@@ -5540,8 +5464,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5540
5464
  var valuesFields = [];
5541
5465
  var drilldownFunc = drilldownFunction;
5542
5466
  var drillDownListFunc = drillDownListFunction;
5543
- var insightsTooltipFunc = insightsTooltipFunction;
5544
- var trackUserInsightsTooltipFunc = trackUserInsightsTooltipFunction;
5545
5467
 
5546
5468
  // fill value fields
5547
5469
  lodash.forEach(widgetOptions.vals, function (valObj) {
@@ -5596,7 +5518,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5596
5518
  widgetOptions.pivot.valuesArray = valuesFields;
5597
5519
  widgetOptions.pivot.chartType = widgetOptions.chart_type;
5598
5520
  widgetOptions.pivot.chartOptions = widgetOptions.options;
5599
- widgetOptions.pivot.chartRender = highchartsRenderer.getChartRendererFunction(widgetOptions.pivot.chartType, drilldownFunc, drillDownListFunc, insightsTooltipFunc, trackUserInsightsTooltipFunc);
5521
+ widgetOptions.pivot.chartRender = highchartsRenderer.getChartRendererFunction(widgetOptions.pivot.chartType, drilldownFunc, drillDownListFunc);
5600
5522
 
5601
5523
  if (highchartsRenderer.isSortingOnBackendEnabled) return;
5602
5524
  // TODO: remove this logic after BE sort is implemented
@@ -6125,7 +6047,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6125
6047
  return toReturn;
6126
6048
  };
6127
6049
 
6128
- highchartsRenderer.getChartRendererFunction = function (newChartType, drilldownFunc, drillDownListFunc, insightsTooltipFunc, trackUserInsightsTooltipFunc) {
6050
+ highchartsRenderer.getChartRendererFunction = function (newChartType, drilldownFunc, drillDownListFunc) {
6129
6051
  var fnToReturn = null;
6130
6052
 
6131
6053
  if (newChartType == highchartsRenderer.richTextSubType.type) {
@@ -6156,8 +6078,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6156
6078
  highchartsRenderer.modifyEventPointForDrilldown(e, pivotData);
6157
6079
  drillDownListFunc(e);
6158
6080
  };
6159
- opt.insightsTooltipFunc = insightsTooltipFunc;
6160
- opt.trackUserInsightsTooltipFunc = trackUserInsightsTooltipFunc;
6161
6081
  } else {
6162
6082
  opt.drillDownListFunc = null;
6163
6083
  }
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) {
@@ -6804,14 +6804,17 @@ describe('highcharts_renderer', () => {
6804
6804
  {
6805
6805
  data: [
6806
6806
  {
6807
+ initialName: 'col 1',
6807
6808
  name: 'col 1',
6808
6809
  y: 11728
6809
6810
  },
6810
6811
  {
6812
+ initialName: 'col 2',
6811
6813
  name: 'col 2',
6812
6814
  y: 55555
6813
6815
  },
6814
6816
  {
6817
+ initialName: 'Others',
6815
6818
  name: 'Others',
6816
6819
  y: 99382
6817
6820
  }
@@ -6837,14 +6840,17 @@ describe('highcharts_renderer', () => {
6837
6840
  {
6838
6841
  data: [
6839
6842
  {
6843
+ initialName: 'col 1',
6840
6844
  name: 'col 1',
6841
6845
  y: 89913.5
6842
6846
  },
6843
6847
  {
6848
+ initialName: 'col 2',
6844
6849
  name: 'col 2',
6845
6850
  y: 78184
6846
6851
  },
6847
6852
  {
6853
+ initialName: 'Others',
6848
6854
  name: 'Others',
6849
6855
  y: 66454.5
6850
6856
  }
@@ -7320,9 +7326,21 @@ describe('highcharts_renderer', () => {
7320
7326
  },
7321
7327
  {
7322
7328
  data: [
7323
- 11728,
7324
- 55555,
7325
- 99382
7329
+ {
7330
+ initialName: 'col 1',
7331
+ name: 'col 1',
7332
+ y: 11728
7333
+ },
7334
+ {
7335
+ initialName: 'col 2',
7336
+ name: 'col 2',
7337
+ y: 55555
7338
+ },
7339
+ {
7340
+ initialName: 'Others',
7341
+ name: 'Others',
7342
+ y: 99382
7343
+ }
7326
7344
  ],
7327
7345
  initialName: 'row 1',
7328
7346
  name: 'Trend Line (row 1)',
@@ -7333,9 +7351,21 @@ describe('highcharts_renderer', () => {
7333
7351
  },
7334
7352
  {
7335
7353
  data: [
7336
- 89913.5,
7337
- 78184,
7338
- 66454.5
7354
+ {
7355
+ initialName: 'col 1',
7356
+ name: 'col 1',
7357
+ y: 89913.5
7358
+ },
7359
+ {
7360
+ initialName: 'col 2',
7361
+ name: 'col 2',
7362
+ y: 78184
7363
+ },
7364
+ {
7365
+ initialName: 'Others',
7366
+ name: 'Others',
7367
+ y: 66454.5
7368
+ }
7339
7369
  ],
7340
7370
  initialName: 'row 2',
7341
7371
  name: 'Trend Line (row 2)',
@@ -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