@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.es6.js +6 -3
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +4 -4
- package/src/Column.ts +6 -2
- package/src/__package__.ts +2 -2
- package/types/Column.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -3,8 +3,8 @@ import { select, scaleTime, timeParse, timeFormat, scaleLog, format, scalePow, s
|
|
|
3
3
|
import { normalizeRadians, degreesToRadians } from '@hpcc-js/util';
|
|
4
4
|
|
|
5
5
|
var PKG_NAME = "@hpcc-js/chart";
|
|
6
|
-
var PKG_VERSION = "2.80.
|
|
7
|
-
var BUILD_VERSION = "2.104.
|
|
6
|
+
var PKG_VERSION = "2.80.3";
|
|
7
|
+
var BUILD_VERSION = "2.104.7";
|
|
8
8
|
|
|
9
9
|
/******************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3307,6 +3307,9 @@ var Column = /** @class */ (function (_super) {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
}
|
|
3309
3309
|
var textColor = isOutside ? null : context.textColor(d.row, d.column, d.value, d.origRow);
|
|
3310
|
+
// Prevent overlapping labels on stacked columns
|
|
3311
|
+
var columns = context.columns();
|
|
3312
|
+
var hideValue = isOutside && context.yAxisStacked() && columns.indexOf(d.column) !== columns.length - 1;
|
|
3310
3313
|
context.textLocal.get(this)
|
|
3311
3314
|
.pos(pos)
|
|
3312
3315
|
.anchor(valueAnchor)
|
|
@@ -3314,7 +3317,7 @@ var Column = /** @class */ (function (_super) {
|
|
|
3314
3317
|
.fontSize(valueFontSize)
|
|
3315
3318
|
.text("".concat(valueText))
|
|
3316
3319
|
.colorFill(textColor)
|
|
3317
|
-
.visible(context.showValue())
|
|
3320
|
+
.visible(context.showValue() && !hideValue)
|
|
3318
3321
|
.render();
|
|
3319
3322
|
});
|
|
3320
3323
|
dataText.exit()
|