@progress/kendo-charts 2.5.0-dev.202408300624 → 2.5.0-dev.202409030746
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-wizard/state.js +13 -15
- package/dist/es2015/chart-wizard/state.js +12 -15
- package/dist/npm/chart-wizard.d.ts +1 -1
- package/dist/npm/main.js +14 -16
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -56,18 +56,17 @@ var ActionTypes = Object.freeze({
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
var fontSizes = [
|
|
59
|
-
{ text: "8", value: "8px" },
|
|
60
59
|
{ text: "10", value: "10px" },
|
|
61
60
|
{ text: "12", value: "12px" },
|
|
62
61
|
{ text: "14", value: "14px" },
|
|
63
62
|
{ text: "16", value: "16px" },
|
|
64
63
|
{ text: "20", value: "20px" },
|
|
65
|
-
{ text: "
|
|
66
|
-
{ text: "
|
|
67
|
-
{ text: "
|
|
68
|
-
|
|
64
|
+
{ text: "28", value: "28px" },
|
|
65
|
+
{ text: "42", value: "42px" },
|
|
66
|
+
{ text: "56", value: "56px" }
|
|
67
|
+
];
|
|
69
68
|
|
|
70
|
-
var titleSizeDefault = '
|
|
69
|
+
var titleSizeDefault = '20px';
|
|
71
70
|
var subtitleSizeDefault = '16px';
|
|
72
71
|
var labelSizeDefault = '12px';
|
|
73
72
|
var axisTitleSizeDefault = '16px';
|
|
@@ -242,7 +241,7 @@ var emptyState = function () { return structuredClone({
|
|
|
242
241
|
data: [],
|
|
243
242
|
series: [],
|
|
244
243
|
initialSeries: [],
|
|
245
|
-
categoryAxis: [],
|
|
244
|
+
categoryAxis: [ { categories: [], labels: { visible: true, rotation: "auto" }, title: { text: '' } } ],
|
|
246
245
|
valueAxis: [{ labels: { visible: true } }],
|
|
247
246
|
area: {
|
|
248
247
|
margin: {
|
|
@@ -252,16 +251,19 @@ var emptyState = function () { return structuredClone({
|
|
|
252
251
|
bottom: undefined,
|
|
253
252
|
},
|
|
254
253
|
},
|
|
254
|
+
title: { text: '' },
|
|
255
|
+
subtitle: { text: '' },
|
|
255
256
|
stack: false,
|
|
256
257
|
}); };
|
|
257
258
|
|
|
258
259
|
var categoryValueChartState = function (data, seriesType, options) {
|
|
259
260
|
var state = emptyState();
|
|
260
261
|
state.seriesType = seriesType;
|
|
261
|
-
state.data = data;
|
|
262
|
+
state.data = data || [];
|
|
263
|
+
state.legend = { visible: true };
|
|
262
264
|
var chartDef = axesDefinitions[seriesType];
|
|
263
265
|
|
|
264
|
-
if (!chartDef) {
|
|
266
|
+
if (!chartDef || !data.length) {
|
|
265
267
|
return state;
|
|
266
268
|
}
|
|
267
269
|
|
|
@@ -322,21 +324,17 @@ var categoryValueChartState = function (data, seriesType, options) {
|
|
|
322
324
|
{ categories: categories, labels: { visible: true, rotation: "auto" } } ];
|
|
323
325
|
state.categoryField = state.columns[catIndex];
|
|
324
326
|
|
|
325
|
-
state.legend = { visible: true };
|
|
326
|
-
state.title = { text: undefined };
|
|
327
|
-
state.subtitle = { text: undefined };
|
|
328
|
-
|
|
329
327
|
return state;
|
|
330
328
|
};
|
|
331
329
|
|
|
332
330
|
var pieChartState = function (data, seriesType, options) {
|
|
333
331
|
var state = emptyState();
|
|
334
332
|
state.seriesType = seriesType;
|
|
335
|
-
state.data = data;
|
|
333
|
+
state.data = data || [];
|
|
336
334
|
|
|
337
335
|
var chartDef = axesDefinitions[seriesType];
|
|
338
336
|
|
|
339
|
-
if (!chartDef) {
|
|
337
|
+
if (!chartDef || !data.length) {
|
|
340
338
|
return state;
|
|
341
339
|
}
|
|
342
340
|
|
|
@@ -56,19 +56,17 @@ const ActionTypes = Object.freeze({
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
const fontSizes = [
|
|
59
|
-
{ text: "8", value: "8px" },
|
|
60
59
|
{ text: "10", value: "10px" },
|
|
61
60
|
{ text: "12", value: "12px" },
|
|
62
61
|
{ text: "14", value: "14px" },
|
|
63
62
|
{ text: "16", value: "16px" },
|
|
64
63
|
{ text: "20", value: "20px" },
|
|
65
|
-
{ text: "
|
|
66
|
-
{ text: "
|
|
67
|
-
{ text: "
|
|
68
|
-
{ text: "96", value: "96px" },
|
|
64
|
+
{ text: "28", value: "28px" },
|
|
65
|
+
{ text: "42", value: "42px" },
|
|
66
|
+
{ text: "56", value: "56px" }
|
|
69
67
|
];
|
|
70
68
|
|
|
71
|
-
const titleSizeDefault = '
|
|
69
|
+
const titleSizeDefault = '20px';
|
|
72
70
|
const subtitleSizeDefault = '16px';
|
|
73
71
|
const labelSizeDefault = '12px';
|
|
74
72
|
const axisTitleSizeDefault = '16px';
|
|
@@ -248,7 +246,7 @@ const emptyState = () =>
|
|
|
248
246
|
data: [],
|
|
249
247
|
series: [],
|
|
250
248
|
initialSeries: [],
|
|
251
|
-
categoryAxis: [],
|
|
249
|
+
categoryAxis: [ { categories: [], labels: { visible: true, rotation: "auto" }, title: { text: '' } } ],
|
|
252
250
|
valueAxis: [{ labels: { visible: true } }],
|
|
253
251
|
area: {
|
|
254
252
|
margin: {
|
|
@@ -258,16 +256,19 @@ const emptyState = () =>
|
|
|
258
256
|
bottom: undefined,
|
|
259
257
|
},
|
|
260
258
|
},
|
|
259
|
+
title: { text: '' },
|
|
260
|
+
subtitle: { text: '' },
|
|
261
261
|
stack: false,
|
|
262
262
|
});
|
|
263
263
|
|
|
264
264
|
const categoryValueChartState = (data, seriesType, options) => {
|
|
265
265
|
const state = emptyState();
|
|
266
266
|
state.seriesType = seriesType;
|
|
267
|
-
state.data = data;
|
|
267
|
+
state.data = data || [];
|
|
268
|
+
state.legend = { visible: true };
|
|
268
269
|
const chartDef = axesDefinitions[seriesType];
|
|
269
270
|
|
|
270
|
-
if (!chartDef) {
|
|
271
|
+
if (!chartDef || !data.length) {
|
|
271
272
|
return state;
|
|
272
273
|
}
|
|
273
274
|
|
|
@@ -330,21 +331,17 @@ const categoryValueChartState = (data, seriesType, options) => {
|
|
|
330
331
|
];
|
|
331
332
|
state.categoryField = state.columns[catIndex];
|
|
332
333
|
|
|
333
|
-
state.legend = { visible: true };
|
|
334
|
-
state.title = { text: undefined };
|
|
335
|
-
state.subtitle = { text: undefined };
|
|
336
|
-
|
|
337
334
|
return state;
|
|
338
335
|
};
|
|
339
336
|
|
|
340
337
|
const pieChartState = (data, seriesType, options) => {
|
|
341
338
|
const state = emptyState();
|
|
342
339
|
state.seriesType = seriesType;
|
|
343
|
-
state.data = data;
|
|
340
|
+
state.data = data || [];
|
|
344
341
|
|
|
345
342
|
const chartDef = axesDefinitions[seriesType];
|
|
346
343
|
|
|
347
|
-
if (!chartDef) {
|
|
344
|
+
if (!chartDef || !data.length) {
|
|
348
345
|
return state;
|
|
349
346
|
}
|
|
350
347
|
|