@progress/kendo-react-charts 5.6.0-next.202209020618 → 5.7.0-dev.202209121340
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-react-charts.js +1 -1
- package/dist/es/common/property-types.d.ts +1 -0
- package/dist/es/components/Subtitle.d.ts +9 -0
- package/dist/es/components/Subtitle.js +17 -0
- package/dist/es/components/main.d.ts +2 -1
- package/dist/es/components/main.js +2 -1
- package/dist/es/option-types/subtitle.interface.d.ts +61 -0
- package/dist/es/option-types/subtitle.interface.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/theming/theme-service.js +2 -0
- package/dist/npm/common/property-types.d.ts +1 -0
- package/dist/npm/components/Subtitle.d.ts +9 -0
- package/dist/npm/components/Subtitle.js +20 -0
- package/dist/npm/components/main.d.ts +2 -1
- package/dist/npm/components/main.js +3 -1
- package/dist/npm/option-types/subtitle.interface.d.ts +61 -0
- package/dist/npm/option-types/subtitle.interface.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/theming/theme-service.js +2 -0
- package/dist/systemjs/kendo-react-charts.js +1 -1
- package/package.json +7 -7
|
@@ -99,6 +99,7 @@ export { SeriesNotesLabel } from '../option-types/series-item/notes.label.interf
|
|
|
99
99
|
export { SeriesOutliers } from '../option-types/series-item/outliers.interface';
|
|
100
100
|
export { SeriesTooltip } from '../option-types/series-item/tooltip.interface';
|
|
101
101
|
export { Series } from '../option-types/series-item.interface';
|
|
102
|
+
export { Subtitle } from '../option-types/subtitle.interface';
|
|
102
103
|
export { Title } from '../option-types/title.interface';
|
|
103
104
|
export { Tooltip } from '../option-types/tooltip.interface';
|
|
104
105
|
export { ValueAxisCrosshair } from '../option-types/value-axis-item/crosshair.interface';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Subtitle } from '../common/property-types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the props of the KendoReact ChartSubtitle component ([see example]({% slug title_chart_charts %})).
|
|
5
|
+
*/
|
|
6
|
+
export interface ChartSubtitleProps extends Subtitle {
|
|
7
|
+
}
|
|
8
|
+
declare const ChartSubtitle: React.FunctionComponent<ChartSubtitleProps>;
|
|
9
|
+
export { ChartSubtitle };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { ConfigurationComponent } from './base/ConfigurationComponent';
|
|
14
|
+
var ChartSubtitle = function (props) {
|
|
15
|
+
return (React.createElement(ConfigurationComponent, __assign({}, props, { _chartKey: "subtitle" })));
|
|
16
|
+
};
|
|
17
|
+
export { ChartSubtitle };
|
|
@@ -11,6 +11,7 @@ import { ChartPlotArea, ChartPlotAreaProps } from './PlotArea';
|
|
|
11
11
|
import { ChartSeries, ChartSeriesProps } from './Series';
|
|
12
12
|
import { ChartSeriesDefaults, ChartSeriesDefaultsProps } from './SeriesDefaults';
|
|
13
13
|
import { ChartSeriesItem, ChartSeriesItemProps } from './SeriesItem';
|
|
14
|
+
import { ChartSubtitle, ChartSubtitleProps } from './Subtitle';
|
|
14
15
|
import { ChartTitle, ChartTitleProps } from './Title';
|
|
15
16
|
import { ChartTooltip, ChartTooltipProps } from './Tooltip';
|
|
16
17
|
import { ChartValueAxis, ChartValueAxisProps } from './ValueAxis';
|
|
@@ -31,4 +32,4 @@ export * from './value-axis-item/main';
|
|
|
31
32
|
export * from './x-axis-item/main';
|
|
32
33
|
export * from './y-axis-item/main';
|
|
33
34
|
export * from './navigator/main';
|
|
34
|
-
export { ChartArea, ChartAreaProps, ChartAxisDefaults, ChartAxisDefaultsProps, ChartCategoryAxis, ChartCategoryAxisProps, ChartCategoryAxisItem, ChartCategoryAxisItemProps, ChartLegend, ChartLegendProps, ChartNavigator, ChartNavigatorProps, ChartPane, ChartPaneDefaults, ChartPaneDefaultsProps, ChartPaneProps, ChartPanes, ChartPanesProps, ChartPlotArea, ChartPlotAreaProps, ChartSeries, ChartSeriesProps, ChartSeriesDefaults, ChartSeriesDefaultsProps, ChartSeriesItem, ChartSeriesItemProps, ChartTitle, ChartTitleProps, ChartTooltip, ChartTooltipProps, ChartValueAxis, ChartValueAxisProps, ChartValueAxisItem, ChartValueAxisItemProps, ChartXAxis, ChartXAxisProps, ChartXAxisItem, ChartXAxisItemProps, ChartYAxis, ChartYAxisProps, ChartYAxisItem, ChartYAxisItemProps, ChartZoomable, ChartZoomableProps };
|
|
35
|
+
export { ChartArea, ChartAreaProps, ChartAxisDefaults, ChartAxisDefaultsProps, ChartCategoryAxis, ChartCategoryAxisProps, ChartCategoryAxisItem, ChartCategoryAxisItemProps, ChartLegend, ChartLegendProps, ChartNavigator, ChartNavigatorProps, ChartPane, ChartPaneDefaults, ChartPaneDefaultsProps, ChartPaneProps, ChartPanes, ChartPanesProps, ChartPlotArea, ChartPlotAreaProps, ChartSeries, ChartSeriesProps, ChartSeriesDefaults, ChartSeriesDefaultsProps, ChartSeriesItem, ChartSeriesItemProps, ChartSubtitle, ChartSubtitleProps, ChartTitle, ChartTitleProps, ChartTooltip, ChartTooltipProps, ChartValueAxis, ChartValueAxisProps, ChartValueAxisItem, ChartValueAxisItemProps, ChartXAxis, ChartXAxisProps, ChartXAxisItem, ChartXAxisItemProps, ChartYAxis, ChartYAxisProps, ChartYAxisItem, ChartYAxisItemProps, ChartZoomable, ChartZoomableProps };
|
|
@@ -11,6 +11,7 @@ import { ChartPlotArea } from './PlotArea';
|
|
|
11
11
|
import { ChartSeries } from './Series';
|
|
12
12
|
import { ChartSeriesDefaults } from './SeriesDefaults';
|
|
13
13
|
import { ChartSeriesItem } from './SeriesItem';
|
|
14
|
+
import { ChartSubtitle } from './Subtitle';
|
|
14
15
|
import { ChartTitle } from './Title';
|
|
15
16
|
import { ChartTooltip } from './Tooltip';
|
|
16
17
|
import { ChartValueAxis } from './ValueAxis';
|
|
@@ -31,4 +32,4 @@ export * from './value-axis-item/main';
|
|
|
31
32
|
export * from './x-axis-item/main';
|
|
32
33
|
export * from './y-axis-item/main';
|
|
33
34
|
export * from './navigator/main';
|
|
34
|
-
export { ChartArea, ChartAxisDefaults, ChartCategoryAxis, ChartCategoryAxisItem, ChartLegend, ChartNavigator, ChartPane, ChartPaneDefaults, ChartPanes, ChartPlotArea, ChartSeries, ChartSeriesDefaults, ChartSeriesItem, ChartTitle, ChartTooltip, ChartValueAxis, ChartValueAxisItem, ChartXAxis, ChartXAxisItem, ChartYAxis, ChartYAxisItem, ChartZoomable };
|
|
35
|
+
export { ChartArea, ChartAxisDefaults, ChartCategoryAxis, ChartCategoryAxisItem, ChartLegend, ChartNavigator, ChartPane, ChartPaneDefaults, ChartPanes, ChartPlotArea, ChartSeries, ChartSeriesDefaults, ChartSeriesItem, ChartSubtitle, ChartTitle, ChartTooltip, ChartValueAxis, ChartValueAxisItem, ChartXAxis, ChartXAxisItem, ChartYAxis, ChartYAxisItem, ChartZoomable };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Border, Margin, Padding } from '../common/property-types';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export interface Subtitle {
|
|
6
|
+
/**
|
|
7
|
+
* The alignment of the subtitle.
|
|
8
|
+
*
|
|
9
|
+
* By default, the subtitle has the same alignment as the title.
|
|
10
|
+
*
|
|
11
|
+
* The available options are:
|
|
12
|
+
* - `"center"`—The text is aligned to the middle.
|
|
13
|
+
* - `"left"`—The text is aligned to the left.
|
|
14
|
+
* - `"right"`—The text is aligned to the right.
|
|
15
|
+
*/
|
|
16
|
+
align?: 'center' | 'left' | 'right';
|
|
17
|
+
/**
|
|
18
|
+
* The background color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
|
|
19
|
+
*/
|
|
20
|
+
background?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The border of the subtitle.
|
|
23
|
+
*/
|
|
24
|
+
border?: Border;
|
|
25
|
+
/**
|
|
26
|
+
* The text color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The font of the subtitle.
|
|
31
|
+
*/
|
|
32
|
+
font?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The margin of the subtitle. A numeric value sets all margins.
|
|
35
|
+
*/
|
|
36
|
+
margin?: Margin | number;
|
|
37
|
+
/**
|
|
38
|
+
* The padding of the subtitle. A numeric value sets all margins.
|
|
39
|
+
*/
|
|
40
|
+
padding?: Padding | number;
|
|
41
|
+
/**
|
|
42
|
+
* The position of the subtitle.
|
|
43
|
+
*
|
|
44
|
+
* By default, the subtitle is placed in the same position as the title.
|
|
45
|
+
*
|
|
46
|
+
* The available options are:
|
|
47
|
+
* - `"bottom"`—The title is positioned on the bottom.
|
|
48
|
+
* - `"top"`—The title is positioned on the top.
|
|
49
|
+
*/
|
|
50
|
+
position?: 'top' | 'bottom';
|
|
51
|
+
/**
|
|
52
|
+
* The text of the chart subtitle. You can also set the text directly for a title with default options.
|
|
53
|
+
*
|
|
54
|
+
* You can split the text into multiple lines by using the line feed characters ("\n").
|
|
55
|
+
*/
|
|
56
|
+
text?: string;
|
|
57
|
+
/**
|
|
58
|
+
* If set to `true`, the Chart displays the subtitle. By default, the subtitle is displayed.
|
|
59
|
+
*/
|
|
60
|
+
visible?: boolean;
|
|
61
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-charts',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1662988791,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -65,6 +65,7 @@ var ThemeService = /** @class */ (function () {
|
|
|
65
65
|
this.mapColor('seriesDefaults.verticalBullet.target.color', 'normal-text-color');
|
|
66
66
|
this.mapColor('seriesDefaults.waterfall.line.color', 'chart-major-lines');
|
|
67
67
|
this.mapColor('title.color', 'normal-text-color');
|
|
68
|
+
this.mapColor('subtitle.color', 'normal-text-color');
|
|
68
69
|
var opacity = parseFloat(this.queryStyle('chart-area-opacity').opacity);
|
|
69
70
|
if (!isNaN(opacity)) {
|
|
70
71
|
this.setStyle('seriesDefaults.area.opacity', opacity);
|
|
@@ -87,6 +88,7 @@ var ThemeService = /** @class */ (function () {
|
|
|
87
88
|
this.setStyle('seriesDefaults.labels.font', labelFont);
|
|
88
89
|
this.setStyle('seriesDefaults.notes.label.font', defaultFont);
|
|
89
90
|
this.setStyle('title.font', titleFont);
|
|
91
|
+
this.setStyle('subtitle.font', paneTitleFont);
|
|
90
92
|
this.setStyle('paneDefaults.title.font', paneTitleFont);
|
|
91
93
|
};
|
|
92
94
|
ThemeService.prototype.setSeriesColors = function () {
|
|
@@ -99,6 +99,7 @@ export { SeriesNotesLabel } from '../option-types/series-item/notes.label.interf
|
|
|
99
99
|
export { SeriesOutliers } from '../option-types/series-item/outliers.interface';
|
|
100
100
|
export { SeriesTooltip } from '../option-types/series-item/tooltip.interface';
|
|
101
101
|
export { Series } from '../option-types/series-item.interface';
|
|
102
|
+
export { Subtitle } from '../option-types/subtitle.interface';
|
|
102
103
|
export { Title } from '../option-types/title.interface';
|
|
103
104
|
export { Tooltip } from '../option-types/tooltip.interface';
|
|
104
105
|
export { ValueAxisCrosshair } from '../option-types/value-axis-item/crosshair.interface';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Subtitle } from '../common/property-types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the props of the KendoReact ChartSubtitle component ([see example]({% slug title_chart_charts %})).
|
|
5
|
+
*/
|
|
6
|
+
export interface ChartSubtitleProps extends Subtitle {
|
|
7
|
+
}
|
|
8
|
+
declare const ChartSubtitle: React.FunctionComponent<ChartSubtitleProps>;
|
|
9
|
+
export { ChartSubtitle };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ChartSubtitle = void 0;
|
|
15
|
+
var React = require("react");
|
|
16
|
+
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
17
|
+
var ChartSubtitle = function (props) {
|
|
18
|
+
return (React.createElement(ConfigurationComponent_1.ConfigurationComponent, __assign({}, props, { _chartKey: "subtitle" })));
|
|
19
|
+
};
|
|
20
|
+
exports.ChartSubtitle = ChartSubtitle;
|
|
@@ -11,6 +11,7 @@ import { ChartPlotArea, ChartPlotAreaProps } from './PlotArea';
|
|
|
11
11
|
import { ChartSeries, ChartSeriesProps } from './Series';
|
|
12
12
|
import { ChartSeriesDefaults, ChartSeriesDefaultsProps } from './SeriesDefaults';
|
|
13
13
|
import { ChartSeriesItem, ChartSeriesItemProps } from './SeriesItem';
|
|
14
|
+
import { ChartSubtitle, ChartSubtitleProps } from './Subtitle';
|
|
14
15
|
import { ChartTitle, ChartTitleProps } from './Title';
|
|
15
16
|
import { ChartTooltip, ChartTooltipProps } from './Tooltip';
|
|
16
17
|
import { ChartValueAxis, ChartValueAxisProps } from './ValueAxis';
|
|
@@ -31,4 +32,4 @@ export * from './value-axis-item/main';
|
|
|
31
32
|
export * from './x-axis-item/main';
|
|
32
33
|
export * from './y-axis-item/main';
|
|
33
34
|
export * from './navigator/main';
|
|
34
|
-
export { ChartArea, ChartAreaProps, ChartAxisDefaults, ChartAxisDefaultsProps, ChartCategoryAxis, ChartCategoryAxisProps, ChartCategoryAxisItem, ChartCategoryAxisItemProps, ChartLegend, ChartLegendProps, ChartNavigator, ChartNavigatorProps, ChartPane, ChartPaneDefaults, ChartPaneDefaultsProps, ChartPaneProps, ChartPanes, ChartPanesProps, ChartPlotArea, ChartPlotAreaProps, ChartSeries, ChartSeriesProps, ChartSeriesDefaults, ChartSeriesDefaultsProps, ChartSeriesItem, ChartSeriesItemProps, ChartTitle, ChartTitleProps, ChartTooltip, ChartTooltipProps, ChartValueAxis, ChartValueAxisProps, ChartValueAxisItem, ChartValueAxisItemProps, ChartXAxis, ChartXAxisProps, ChartXAxisItem, ChartXAxisItemProps, ChartYAxis, ChartYAxisProps, ChartYAxisItem, ChartYAxisItemProps, ChartZoomable, ChartZoomableProps };
|
|
35
|
+
export { ChartArea, ChartAreaProps, ChartAxisDefaults, ChartAxisDefaultsProps, ChartCategoryAxis, ChartCategoryAxisProps, ChartCategoryAxisItem, ChartCategoryAxisItemProps, ChartLegend, ChartLegendProps, ChartNavigator, ChartNavigatorProps, ChartPane, ChartPaneDefaults, ChartPaneDefaultsProps, ChartPaneProps, ChartPanes, ChartPanesProps, ChartPlotArea, ChartPlotAreaProps, ChartSeries, ChartSeriesProps, ChartSeriesDefaults, ChartSeriesDefaultsProps, ChartSeriesItem, ChartSeriesItemProps, ChartSubtitle, ChartSubtitleProps, ChartTitle, ChartTitleProps, ChartTooltip, ChartTooltipProps, ChartValueAxis, ChartValueAxisProps, ChartValueAxisItem, ChartValueAxisItemProps, ChartXAxis, ChartXAxisProps, ChartXAxisItem, ChartXAxisItemProps, ChartYAxis, ChartYAxisProps, ChartYAxisItem, ChartYAxisItemProps, ChartZoomable, ChartZoomableProps };
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ChartZoomable = exports.ChartYAxisItem = exports.ChartYAxis = exports.ChartXAxisItem = exports.ChartXAxis = exports.ChartValueAxisItem = exports.ChartValueAxis = exports.ChartTooltip = exports.ChartTitle = exports.ChartSeriesItem = exports.ChartSeriesDefaults = exports.ChartSeries = exports.ChartPlotArea = exports.ChartPanes = exports.ChartPaneDefaults = exports.ChartPane = exports.ChartNavigator = exports.ChartLegend = exports.ChartCategoryAxisItem = exports.ChartCategoryAxis = exports.ChartAxisDefaults = exports.ChartArea = void 0;
|
|
17
|
+
exports.ChartZoomable = exports.ChartYAxisItem = exports.ChartYAxis = exports.ChartXAxisItem = exports.ChartXAxis = exports.ChartValueAxisItem = exports.ChartValueAxis = exports.ChartTooltip = exports.ChartTitle = exports.ChartSubtitle = exports.ChartSeriesItem = exports.ChartSeriesDefaults = exports.ChartSeries = exports.ChartPlotArea = exports.ChartPanes = exports.ChartPaneDefaults = exports.ChartPane = exports.ChartNavigator = exports.ChartLegend = exports.ChartCategoryAxisItem = exports.ChartCategoryAxis = exports.ChartAxisDefaults = exports.ChartArea = void 0;
|
|
18
18
|
var ChartArea_1 = require("./ChartArea");
|
|
19
19
|
Object.defineProperty(exports, "ChartArea", { enumerable: true, get: function () { return ChartArea_1.ChartArea; } });
|
|
20
20
|
var AxisDefaults_1 = require("./AxisDefaults");
|
|
@@ -41,6 +41,8 @@ var SeriesDefaults_1 = require("./SeriesDefaults");
|
|
|
41
41
|
Object.defineProperty(exports, "ChartSeriesDefaults", { enumerable: true, get: function () { return SeriesDefaults_1.ChartSeriesDefaults; } });
|
|
42
42
|
var SeriesItem_1 = require("./SeriesItem");
|
|
43
43
|
Object.defineProperty(exports, "ChartSeriesItem", { enumerable: true, get: function () { return SeriesItem_1.ChartSeriesItem; } });
|
|
44
|
+
var Subtitle_1 = require("./Subtitle");
|
|
45
|
+
Object.defineProperty(exports, "ChartSubtitle", { enumerable: true, get: function () { return Subtitle_1.ChartSubtitle; } });
|
|
44
46
|
var Title_1 = require("./Title");
|
|
45
47
|
Object.defineProperty(exports, "ChartTitle", { enumerable: true, get: function () { return Title_1.ChartTitle; } });
|
|
46
48
|
var Tooltip_1 = require("./Tooltip");
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Border, Margin, Padding } from '../common/property-types';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export interface Subtitle {
|
|
6
|
+
/**
|
|
7
|
+
* The alignment of the subtitle.
|
|
8
|
+
*
|
|
9
|
+
* By default, the subtitle has the same alignment as the title.
|
|
10
|
+
*
|
|
11
|
+
* The available options are:
|
|
12
|
+
* - `"center"`—The text is aligned to the middle.
|
|
13
|
+
* - `"left"`—The text is aligned to the left.
|
|
14
|
+
* - `"right"`—The text is aligned to the right.
|
|
15
|
+
*/
|
|
16
|
+
align?: 'center' | 'left' | 'right';
|
|
17
|
+
/**
|
|
18
|
+
* The background color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
|
|
19
|
+
*/
|
|
20
|
+
background?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The border of the subtitle.
|
|
23
|
+
*/
|
|
24
|
+
border?: Border;
|
|
25
|
+
/**
|
|
26
|
+
* The text color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The font of the subtitle.
|
|
31
|
+
*/
|
|
32
|
+
font?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The margin of the subtitle. A numeric value sets all margins.
|
|
35
|
+
*/
|
|
36
|
+
margin?: Margin | number;
|
|
37
|
+
/**
|
|
38
|
+
* The padding of the subtitle. A numeric value sets all margins.
|
|
39
|
+
*/
|
|
40
|
+
padding?: Padding | number;
|
|
41
|
+
/**
|
|
42
|
+
* The position of the subtitle.
|
|
43
|
+
*
|
|
44
|
+
* By default, the subtitle is placed in the same position as the title.
|
|
45
|
+
*
|
|
46
|
+
* The available options are:
|
|
47
|
+
* - `"bottom"`—The title is positioned on the bottom.
|
|
48
|
+
* - `"top"`—The title is positioned on the top.
|
|
49
|
+
*/
|
|
50
|
+
position?: 'top' | 'bottom';
|
|
51
|
+
/**
|
|
52
|
+
* The text of the chart subtitle. You can also set the text directly for a title with default options.
|
|
53
|
+
*
|
|
54
|
+
* You can split the text into multiple lines by using the line feed characters ("\n").
|
|
55
|
+
*/
|
|
56
|
+
text?: string;
|
|
57
|
+
/**
|
|
58
|
+
* If set to `true`, the Chart displays the subtitle. By default, the subtitle is displayed.
|
|
59
|
+
*/
|
|
60
|
+
visible?: boolean;
|
|
61
|
+
}
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-charts',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1662988791,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -68,6 +68,7 @@ var ThemeService = /** @class */ (function () {
|
|
|
68
68
|
this.mapColor('seriesDefaults.verticalBullet.target.color', 'normal-text-color');
|
|
69
69
|
this.mapColor('seriesDefaults.waterfall.line.color', 'chart-major-lines');
|
|
70
70
|
this.mapColor('title.color', 'normal-text-color');
|
|
71
|
+
this.mapColor('subtitle.color', 'normal-text-color');
|
|
71
72
|
var opacity = parseFloat(this.queryStyle('chart-area-opacity').opacity);
|
|
72
73
|
if (!isNaN(opacity)) {
|
|
73
74
|
this.setStyle('seriesDefaults.area.opacity', opacity);
|
|
@@ -90,6 +91,7 @@ var ThemeService = /** @class */ (function () {
|
|
|
90
91
|
this.setStyle('seriesDefaults.labels.font', labelFont);
|
|
91
92
|
this.setStyle('seriesDefaults.notes.label.font', defaultFont);
|
|
92
93
|
this.setStyle('title.font', titleFont);
|
|
94
|
+
this.setStyle('subtitle.font', paneTitleFont);
|
|
93
95
|
this.setStyle('paneDefaults.title.font', paneTitleFont);
|
|
94
96
|
};
|
|
95
97
|
ThemeService.prototype.setSeriesColors = function () {
|