@progress/kendo-charts 2.2.0-dev.202402011056 → 2.2.0
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-chart.js +2 -2
- package/dist/es/chart/categorical-chart.js +3 -2
- package/dist/es2015/chart/bar-chart/bar-chart.js +2 -2
- package/dist/es2015/chart/categorical-chart.js +3 -2
- package/dist/npm/main.js +4 -3
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { BAR, OUTSIDE_END, INSIDE_END } from '../constants';
|
|
|
9
9
|
|
|
10
10
|
import anyHasZIndex from '../utils/any-has-z-index';
|
|
11
11
|
|
|
12
|
-
import { STRING, X, Y } from '../../common/constants';
|
|
12
|
+
import { OBJECT, STRING, X, Y } from '../../common/constants';
|
|
13
13
|
import { defined, isFunction, setDefaultOptions } from '../../common';
|
|
14
14
|
|
|
15
15
|
var BarChart = (function (CategoricalChart) {
|
|
@@ -101,7 +101,7 @@ var BarChart = (function (CategoricalChart) {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
BarChart.prototype.getStackWrap = function getStackWrap (stack, cluster) {
|
|
104
|
-
var stackGroup = stack ? stack.group ||
|
|
104
|
+
var stackGroup = (typeof stack === OBJECT) ? (stack.group || true) : stack;
|
|
105
105
|
var wraps = cluster.children;
|
|
106
106
|
var stackWrap;
|
|
107
107
|
|
|
@@ -7,7 +7,7 @@ import { evalOptions, categoriesCount } from './utils';
|
|
|
7
7
|
|
|
8
8
|
import { ChartElement, Box } from '../core';
|
|
9
9
|
|
|
10
|
-
import { VALUE, STRING, MIN_VALUE, MAX_VALUE } from '../common/constants';
|
|
10
|
+
import { VALUE, STRING, MIN_VALUE, MAX_VALUE, OBJECT } from '../common/constants';
|
|
11
11
|
import { convertableToNumber, deepExtend, defined, isNumber, last, setDefaultOptions, sparseArrayLimits } from '../common';
|
|
12
12
|
|
|
13
13
|
var CategoricalChart = (function (ChartElement) {
|
|
@@ -99,6 +99,7 @@ var CategoricalChart = (function (ChartElement) {
|
|
|
99
99
|
var prevValue = startValue;
|
|
100
100
|
var isStackedBar = false;
|
|
101
101
|
var stack = defined(point.series.stack) ? point.series.stack : this.options.defaultStack;
|
|
102
|
+
var isNonGroupStack = function (stack) { return stack === true || typeof stack === OBJECT && !stack.group; };
|
|
102
103
|
|
|
103
104
|
if (stack) {
|
|
104
105
|
for (var i = 0; i < categoryPoints.length; i++) {
|
|
@@ -118,7 +119,7 @@ var CategoricalChart = (function (ChartElement) {
|
|
|
118
119
|
continue;
|
|
119
120
|
}
|
|
120
121
|
|
|
121
|
-
if (stack
|
|
122
|
+
if (isNonGroupStack(stack) && !isNonGroupStack(otherStack)) {
|
|
122
123
|
continue;
|
|
123
124
|
}
|
|
124
125
|
|
|
@@ -9,7 +9,7 @@ import { BAR, OUTSIDE_END, INSIDE_END } from '../constants';
|
|
|
9
9
|
|
|
10
10
|
import anyHasZIndex from '../utils/any-has-z-index';
|
|
11
11
|
|
|
12
|
-
import { STRING, X, Y } from '../../common/constants';
|
|
12
|
+
import { OBJECT, STRING, X, Y } from '../../common/constants';
|
|
13
13
|
import { defined, isFunction, setDefaultOptions } from '../../common';
|
|
14
14
|
|
|
15
15
|
class BarChart extends CategoricalChart {
|
|
@@ -90,7 +90,7 @@ class BarChart extends CategoricalChart {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
getStackWrap(stack, cluster) {
|
|
93
|
-
const stackGroup = stack ? stack.group ||
|
|
93
|
+
const stackGroup = (typeof stack === OBJECT) ? (stack.group || true) : stack;
|
|
94
94
|
const wraps = cluster.children;
|
|
95
95
|
let stackWrap;
|
|
96
96
|
|
|
@@ -7,7 +7,7 @@ import { evalOptions, categoriesCount } from './utils';
|
|
|
7
7
|
|
|
8
8
|
import { ChartElement, Box } from '../core';
|
|
9
9
|
|
|
10
|
-
import { VALUE, STRING, MIN_VALUE, MAX_VALUE } from '../common/constants';
|
|
10
|
+
import { VALUE, STRING, MIN_VALUE, MAX_VALUE, OBJECT } from '../common/constants';
|
|
11
11
|
import { convertableToNumber, deepExtend, defined, isNumber, last, setDefaultOptions, sparseArrayLimits } from '../common';
|
|
12
12
|
|
|
13
13
|
class CategoricalChart extends ChartElement {
|
|
@@ -92,6 +92,7 @@ class CategoricalChart extends ChartElement {
|
|
|
92
92
|
let prevValue = startValue;
|
|
93
93
|
let isStackedBar = false;
|
|
94
94
|
const stack = defined(point.series.stack) ? point.series.stack : this.options.defaultStack;
|
|
95
|
+
const isNonGroupStack = (stack) => stack === true || typeof stack === OBJECT && !stack.group;
|
|
95
96
|
|
|
96
97
|
if (stack) {
|
|
97
98
|
for (let i = 0; i < categoryPoints.length; i++) {
|
|
@@ -111,7 +112,7 @@ class CategoricalChart extends ChartElement {
|
|
|
111
112
|
continue;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
if (stack
|
|
115
|
+
if (isNonGroupStack(stack) && !isNonGroupStack(otherStack)) {
|
|
115
116
|
continue;
|
|
116
117
|
}
|
|
117
118
|
|