@progress/kendo-charts 2.6.3-dev.202411211546 → 2.6.3-dev.202411221315
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/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/bar-chart/bar-label.js +3 -2
- package/dist/es/chart/tooltip/base-tooltip.js +3 -0
- package/dist/es2015/chart/bar-chart/bar-label.js +3 -2
- package/dist/es2015/chart/tooltip/base-tooltip.js +3 -0
- package/dist/npm/main.js +7 -3
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -55,9 +55,10 @@ var BarLabel = (function (ChartElement) {
|
|
|
55
55
|
} else if (options.position === OUTSIDE_END) {
|
|
56
56
|
if (vertical) {
|
|
57
57
|
if (aboveAxis) {
|
|
58
|
+
var boxesDiff = (box.width() - targetBox.width() - padding.left - padding.right) / 2;
|
|
58
59
|
labelBox = new Box(
|
|
59
|
-
targetBox.x1, targetBox.y1 - box.height(),
|
|
60
|
-
targetBox.x2, targetBox.y1
|
|
60
|
+
targetBox.x1 - boxesDiff, targetBox.y1 - box.height(),
|
|
61
|
+
targetBox.x2 + boxesDiff, targetBox.y1
|
|
61
62
|
);
|
|
62
63
|
} else {
|
|
63
64
|
labelBox = new Box(
|
|
@@ -49,6 +49,9 @@ var BaseTooltip = (function (Class) {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
BaseTooltip.prototype.show = function show (options, tooltipOptions, point) {
|
|
52
|
+
if (!this.chartService) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
52
55
|
options.format = tooltipOptions.format;
|
|
53
56
|
|
|
54
57
|
var style = this.getStyle(tooltipOptions, point);
|
|
@@ -50,9 +50,10 @@ class BarLabel extends ChartElement {
|
|
|
50
50
|
} else if (options.position === OUTSIDE_END) {
|
|
51
51
|
if (vertical) {
|
|
52
52
|
if (aboveAxis) {
|
|
53
|
+
const boxesDiff = (box.width() - targetBox.width() - padding.left - padding.right) / 2;
|
|
53
54
|
labelBox = new Box(
|
|
54
|
-
targetBox.x1, targetBox.y1 - box.height(),
|
|
55
|
-
targetBox.x2, targetBox.y1
|
|
55
|
+
targetBox.x1 - boxesDiff, targetBox.y1 - box.height(),
|
|
56
|
+
targetBox.x2 + boxesDiff, targetBox.y1
|
|
56
57
|
);
|
|
57
58
|
} else {
|
|
58
59
|
labelBox = new Box(
|