@progress/kendo-charts 2.8.0 → 2.8.1-develop.2
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/legend/legend.js +3 -0
- package/dist/es/chart-wizard/state.js +10 -0
- package/dist/es2015/chart/legend/legend.js +3 -0
- package/dist/es2015/chart-wizard/state.js +10 -0
- package/dist/npm/main.js +14 -1
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +2 -2
|
@@ -158,6 +158,9 @@ class Legend extends ChartElement {
|
|
|
158
158
|
|
|
159
159
|
if (this.hasTitle()) {
|
|
160
160
|
this.title.reflow(new Box(this.container.box.x1, this.title.box.y1, this.container.box.x2, this.title.box.y2));
|
|
161
|
+
if (this.title.box.width() > this.itemsContainer.box.width()) {
|
|
162
|
+
this.itemsContainer.reflow(new Box(this.container.box.x1, this.itemsContainer.box.y1, this.container.box.x2, this.itemsContainer.box.y2));
|
|
163
|
+
}
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
166
|
|
|
@@ -426,6 +426,15 @@ function createState(data, seriesType) {
|
|
|
426
426
|
);
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
+
function preserveStackProperties(source, target) {
|
|
430
|
+
for (let i = 0; i < target.series.length; i++) {
|
|
431
|
+
if (typeof source.series[i].stack !== 'undefined') {
|
|
432
|
+
target.series[i].stack = source.series[i].stack;
|
|
433
|
+
target.stack = source.stack;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
429
438
|
function mergeStates(source, target) {
|
|
430
439
|
const newState = structuredClone(target);
|
|
431
440
|
newState.legend = source.legend;
|
|
@@ -473,6 +482,7 @@ function updateState(currentState, action, value) {
|
|
|
473
482
|
state.seriesType,
|
|
474
483
|
{ categoryAxis: value }
|
|
475
484
|
);
|
|
485
|
+
preserveStackProperties(state, newState);
|
|
476
486
|
return mergeStates(state, newState);
|
|
477
487
|
} else if (state.seriesType === pieType) {
|
|
478
488
|
const newState = pieChartState(state.data, state.seriesType, {
|
|
@@ -158,6 +158,9 @@ class Legend extends ChartElement {
|
|
|
158
158
|
|
|
159
159
|
if (this.hasTitle()) {
|
|
160
160
|
this.title.reflow(new Box(this.container.box.x1, this.title.box.y1, this.container.box.x2, this.title.box.y2));
|
|
161
|
+
if (this.title.box.width() > this.itemsContainer.box.width()) {
|
|
162
|
+
this.itemsContainer.reflow(new Box(this.container.box.x1, this.itemsContainer.box.y1, this.container.box.x2, this.itemsContainer.box.y2));
|
|
163
|
+
}
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
166
|
|
|
@@ -426,6 +426,15 @@ function createState(data, seriesType) {
|
|
|
426
426
|
);
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
+
function preserveStackProperties(source, target) {
|
|
430
|
+
for (let i = 0; i < target.series.length; i++) {
|
|
431
|
+
if (typeof source.series[i].stack !== 'undefined') {
|
|
432
|
+
target.series[i].stack = source.series[i].stack;
|
|
433
|
+
target.stack = source.stack;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
429
438
|
function mergeStates(source, target) {
|
|
430
439
|
const newState = structuredClone(target);
|
|
431
440
|
newState.legend = source.legend;
|
|
@@ -473,6 +482,7 @@ function updateState(currentState, action, value) {
|
|
|
473
482
|
state.seriesType,
|
|
474
483
|
{ categoryAxis: value }
|
|
475
484
|
);
|
|
485
|
+
preserveStackProperties(state, newState);
|
|
476
486
|
return mergeStates(state, newState);
|
|
477
487
|
} else if (state.seriesType === pieType) {
|
|
478
488
|
const newState = pieChartState(state.data, state.seriesType, {
|