@datarailsshared/dr_renderer 1.2.382 → 1.2.383

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.382",
3
+ "version": "1.2.383",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -2575,7 +2575,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2575
2575
  chartOptions.legend = highchartsRenderer.getOptionsForLegends(additionOptions, 1, false, true);
2576
2576
  if (drilldownFunc)
2577
2577
  chartOptions.drilldown = {}
2578
- else
2578
+ else if (!pivotData.isDrillDownDisabled)
2579
2579
  chartOptions.drilldown = highchartsRenderer.ptCreateDrillDownSeriesToDrilldownChart(pivotData, chartOptions, additionOptions, opts);
2580
2580
 
2581
2581
  return highchartsRenderer.ptCreateElementAndDraw(chartOptions, opts);
@@ -3102,7 +3102,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
3102
3102
 
3103
3103
  highchartsRenderer.handleGridLines(additionOptions, chartOptions);
3104
3104
 
3105
- var isNotDrilldown = !(colAttrs && colAttrs.length > 1);
3105
+ var isNotDrilldown = !(colAttrs && colAttrs.length > 1) || pivotData.isDrillDownDisabled;
3106
3106
  if (lodash.get(opts, 'paletteOptions.widgetPalette', null)) {
3107
3107
  const mc_palette = lodash.find(lodash.get(opts.paletteOptions, 'monochromePalettes', []), { selected: true });
3108
3108
  chartOptions.colors = mc_palette ? mc_palette.colors : opts.paletteOptions.widgetPalette;
@@ -4881,6 +4881,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
4881
4881
  rendererOptions: widget.options,
4882
4882
  dateValuesDictionary: pivotOptions ? pivotOptions.dateValuesDictionary : null,
4883
4883
  keysObject: pivotOptions ? pivotOptions.keysObject : null,
4884
+ isDrillDownDisabled: pivotOptions ? pivotOptions.isDrillDownDisabled : false,
4884
4885
  };
4885
4886
 
4886
4887
  if (!subopts.rendererOptions) {
package/src/pivottable.js CHANGED
@@ -711,6 +711,7 @@ let initPivotTable = function($, window, document) {
711
711
  this.isFormattingAxisLabels = opts.rendererOptions && opts.rendererOptions.isFormattingAxisLabels;
712
712
  this.getFormattedColKeys = (keys) => opts.getFormattedColKeys(this, keys);
713
713
  this.getFormattedRowKeys = (keys) => opts.getFormattedRowKeys(this, keys);
714
+ this.isDrillDownDisabled = opts.isDrillDownDisabled;
714
715
 
715
716
  PivotData.forEachRecord(this.input, this.derivedAttributes, (function(_this) {
716
717
  return function(record) {