@hpcc-js/chart 2.80.2 → 2.80.3

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/dist/index.js CHANGED
@@ -5,8 +5,8 @@
5
5
  })(this, (function (exports, api, common, util) { 'use strict';
6
6
 
7
7
  var PKG_NAME = "@hpcc-js/chart";
8
- var PKG_VERSION = "2.80.2";
9
- var BUILD_VERSION = "2.104.5";
8
+ var PKG_VERSION = "2.80.3";
9
+ var BUILD_VERSION = "2.104.7";
10
10
 
11
11
  /******************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -3309,6 +3309,9 @@
3309
3309
  }
3310
3310
  }
3311
3311
  var textColor = isOutside ? null : context.textColor(d.row, d.column, d.value, d.origRow);
3312
+ // Prevent overlapping labels on stacked columns
3313
+ var columns = context.columns();
3314
+ var hideValue = isOutside && context.yAxisStacked() && columns.indexOf(d.column) !== columns.length - 1;
3312
3315
  context.textLocal.get(this)
3313
3316
  .pos(pos)
3314
3317
  .anchor(valueAnchor)
@@ -3316,7 +3319,7 @@
3316
3319
  .fontSize(valueFontSize)
3317
3320
  .text("".concat(valueText))
3318
3321
  .colorFill(textColor)
3319
- .visible(context.showValue())
3322
+ .visible(context.showValue() && !hideValue)
3320
3323
  .render();
3321
3324
  });
3322
3325
  dataText.exit()