@progress/kendo-charts 1.32.0 → 1.32.1-dev.202310240903
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/es/chart/chart.js
CHANGED
|
@@ -23,7 +23,7 @@ import { ChartPane, ChartPlotArea, findAxisByName } from './api-elements';
|
|
|
23
23
|
import { X, Y, VALUE, DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_SERIES_OPACITY } from '../common/constants';
|
|
24
24
|
import { addClass, Class, setDefaultOptions, deepExtend, defined, find, isObject, isFunction, elementSize, elementOffset,
|
|
25
25
|
elementScale, elementStyles, eventCoordinates, bindEvents, unbindEvents, mousewheelDelta, FontLoader, inArray, last, round,
|
|
26
|
-
HashMap, valueOrDefault } from '../common';
|
|
26
|
+
HashMap, valueOrDefault, isString } from '../common';
|
|
27
27
|
|
|
28
28
|
import { dateComparer } from '../date-utils';
|
|
29
29
|
|
|
@@ -108,6 +108,10 @@ var Chart = (function (Class) {
|
|
|
108
108
|
delete options.seriesColors;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
if (isString(options.title)) {
|
|
112
|
+
options.title = { text: options.title };
|
|
113
|
+
}
|
|
114
|
+
|
|
111
115
|
this.options = deepExtend({}, themeOptions, options);
|
|
112
116
|
this.applySeriesColors();
|
|
113
117
|
};
|
|
@@ -23,7 +23,7 @@ import { ChartPane, ChartPlotArea, findAxisByName } from './api-elements';
|
|
|
23
23
|
import { X, Y, VALUE, DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_SERIES_OPACITY } from '../common/constants';
|
|
24
24
|
import { addClass, Class, setDefaultOptions, deepExtend, defined, find, isObject, isFunction, elementSize, elementOffset,
|
|
25
25
|
elementScale, elementStyles, eventCoordinates, bindEvents, unbindEvents, mousewheelDelta, FontLoader, inArray, last, round,
|
|
26
|
-
HashMap, valueOrDefault } from '../common';
|
|
26
|
+
HashMap, valueOrDefault, isString } from '../common';
|
|
27
27
|
|
|
28
28
|
import { dateComparer } from '../date-utils';
|
|
29
29
|
|
|
@@ -101,6 +101,10 @@ class Chart extends Class {
|
|
|
101
101
|
delete options.seriesColors;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if (isString(options.title)) {
|
|
105
|
+
options.title = { text: options.title };
|
|
106
|
+
}
|
|
107
|
+
|
|
104
108
|
this.options = deepExtend({}, themeOptions, options);
|
|
105
109
|
this.applySeriesColors();
|
|
106
110
|
}
|