@progress/kendo-charts 2.6.3-dev.202411180830 → 2.6.3-dev.202411221249
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 +8 -1
- package/dist/es2015/chart/bar-chart/bar-label.js +3 -2
- package/dist/es2015/chart/tooltip/base-tooltip.js +8 -1
- package/dist/npm/main.js +12 -4
- 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(
|
|
@@ -25,7 +25,14 @@ var BaseTooltip = (function (Class) {
|
|
|
25
25
|
border = valueOrDefault(border, pointColor);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
var padding = getSpacing(options.padding
|
|
28
|
+
var padding = options.padding !== undefined ? getSpacing(options.padding) : {};
|
|
29
|
+
|
|
30
|
+
if (typeof options.padding === "object") {
|
|
31
|
+
padding.top = options.padding.top !== undefined ? padding.top : undefined;
|
|
32
|
+
padding.right = options.padding.right !== undefined ? padding.right : undefined;
|
|
33
|
+
padding.bottom = options.padding.bottom !== undefined ? padding.bottom : undefined;
|
|
34
|
+
padding.left = options.padding.left !== undefined ? padding.left : undefined;
|
|
35
|
+
}
|
|
29
36
|
|
|
30
37
|
return {
|
|
31
38
|
backgroundColor: background,
|
|
@@ -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(
|
|
@@ -20,7 +20,14 @@ class BaseTooltip extends Class {
|
|
|
20
20
|
border = valueOrDefault(border, pointColor);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const padding = getSpacing(options.padding
|
|
23
|
+
const padding = options.padding !== undefined ? getSpacing(options.padding) : {};
|
|
24
|
+
|
|
25
|
+
if (typeof options.padding === "object") {
|
|
26
|
+
padding.top = options.padding.top !== undefined ? padding.top : undefined;
|
|
27
|
+
padding.right = options.padding.right !== undefined ? padding.right : undefined;
|
|
28
|
+
padding.bottom = options.padding.bottom !== undefined ? padding.bottom : undefined;
|
|
29
|
+
padding.left = options.padding.left !== undefined ? padding.left : undefined;
|
|
30
|
+
}
|
|
24
31
|
|
|
25
32
|
return {
|
|
26
33
|
backgroundColor: background,
|