You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can add a short description of the Chart's purpose by using the `ChartTitle` tag and the `Text` parameter. In addition, the `ChartTitle``Description` parameter allows the app to provide accessible text content, which screen readers announce when the Chart gains focus.
78
76
79
-
>caption Using ChartTitle
77
+
You can also add a secondary title through `ChartSubtitle` and configure its `Position`.
78
+
79
+
>caption Using Chart Title, Description and
80
80
81
81
<divclass="skip-repl"></div>
82
82
83
83
````RAZOR
84
84
<TelerikChart>
85
-
<ChartTitle Text="Product Sales" Description="Product Sales by Year and Country"></ChartTitle>
85
+
<ChartTitle Text="Product Sales"
86
+
Description="Product Sales by Year and Country"
87
+
Position="@ChartTitlePosition.Top">
88
+
<ChartSubtitle Text="Product Sales by Year and Country"
89
+
Position="@ChartSubtitlePosition.Bottom" />
90
+
</ChartTitle>
86
91
</TelerikChart>
87
92
````
88
93
89
-
## Chart Subtitle
90
-
91
-
You can add a descriptive text that enriches the [Title](#chart-title) by adding the `ChartSubtitle` and assigning a value for the `Text` parameter.
92
-
93
-
## Chart Size
94
+
## Size
94
95
95
96
To control the chart size, use its `Width` and `Height` properties. You can read more on how they work in the [Dimensions](slug://common-features/dimensions) article.
96
97
@@ -145,6 +146,87 @@ You can make a responsive chart
145
146
}
146
147
````
147
148
149
+
## Styling with CSS Variables
150
+
151
+
The Chart allows various [customizations through child tags and parameters](#chart-elements). Starting with version 7.2.0, the Chart also supports visual customizations through [CSS variables](slug:themes-customize#setting-theme-variables).
152
+
153
+
>caption Using CSS variables to customize the Chart appearance
154
+
155
+
````RAZOR
156
+
<style>
157
+
/* All Charts */
158
+
div.k-chart {
159
+
/* Chart background */
160
+
--kendo-chart-bg: #ffd;
161
+
/* Chart text */
162
+
--kendo-chart-text: #f00;
163
+
/* First series color. Supports up to --kendo-chart-series-30 */
164
+
--kendo-chart-series-1: #f93;
165
+
}
166
+
167
+
/* Charts with this CSS class */
168
+
div.lime-chart {
169
+
/* Chart background */
170
+
--kendo-chart-bg: #dfd;
171
+
/* Chart text */
172
+
--kendo-chart-text: #00f;
173
+
/* First series color. Supports up to --kendo-chart-series-30 */
Copy file name to clipboardExpand all lines: components/chart/rendering-modes.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Using vector graphics ensures that:
25
25
* The browser zoom does not degrade the image.
26
26
* The prints are crisp regardless of the resolution.
27
27
28
-
In addition, the SVG Chart provides accessibility features such as [general description](slug://components/chart/overview#chart-title) and [aria label templates](slug://components/chart/label-template-format#series-label-aria-template) out of the box.
28
+
In addition, the SVG Chart provides accessibility features such as [general description](slug://components/chart/overview#title-and-subtitle) and [aria label templates](slug://components/chart/label-template-format#series-label-aria-template) out of the box.
0 commit comments