# Chart Title

The **ChartTitle** is a content control placed at the top of each chart control. It is used to display any title information regarding the visualized chart.
 
![WPF RadChart Chart Title](https://www.telerik.com/products/wpf/documentation/assets/bdf1ff3f34cdeffdd876f061bf8dcf10/radchart_features_charttitle_01.png)

You can specify the content of the default **ChartTitle** control from XAML or code-behind, like this:

```XAML
	<telerik:RadChart x:Name="radChart">
	    <telerik:RadChart.DefaultView>
	        <telerik:ChartDefaultView>
	            <telerik:ChartDefaultView.ChartTitle>
	
	                <telerik:ChartTitle HorizontalAlignment="Center" Content="Monthly Sales for 2009" />
	
	            </telerik:ChartDefaultView.ChartTitle>
	        </telerik:ChartDefaultView>
	    </telerik:RadChart.DefaultView>
	</telerik:RadChart>
```

```C#
	this.radChart.DefaultView.ChartTitle.Content = "Monthly Sales for 2009";
```

```VB.NET
	radChart.DefaultView.ChartTitle.Content = "Monthly Sales for 2009"
```

Since **ChartTitle** is a content control, you can set as its content not only textual data but also any other type of controls. The following example demonstrates how to create custom chart title with **TextBlock** in a **Border** control.

```XAML
	<telerik:RadChart>
	    <telerik:RadChart.DefaultView>
	        <telerik:ChartDefaultView>
	            <telerik:ChartDefaultView.ChartTitle>
	
	                <telerik:ChartTitle HorizontalAlignment="Center">
	                    <Border BorderBrush="LightBlue"
	                            BorderThickness="2"
	                            CornerRadius="5">
	                        <TextBlock Text="Monthly Sales for 2009" />
	                    </Border>
	                </telerik:ChartTitle>
	
	            </telerik:ChartDefaultView.ChartTitle>
	        </telerik:ChartDefaultView>
	    </telerik:RadChart.DefaultView>
	</telerik:RadChart>
```

```C#
	Telerik.Windows.Controls.RadChart radChart = new Telerik.Windows.Controls.RadChart();
	//....
	Border border = new Border();
	border.BorderThickness = new Thickness( 2 );
	border.CornerRadius = new CornerRadius( 5 );
	border.BorderBrush = new SolidColorBrush(Color.FromArgb( 255, 173, 216, 230 ));
	border.Child = new TextBlock(){ Text = "Monthly Sales for 2009" };
	radChart.DefaultView.ChartTitle.Content = border;
```

```VB.NET
	Dim radChart As New Telerik.Windows.Controls.RadChart()
	'....'
	Dim border As New Border()
	border.BorderThickness = New Thickness(2)
	border.CornerRadius = New CornerRadius(5)
	border.BorderBrush = New SolidColorBrush(Color.FromArgb(255, 173, 216, 230))
	border.Child = New TextBlock()
	'Set the content of the ChartTitle'
	radChart.DefaultView.ChartTitle.Content = border
```

And here is the final result:
 
![WPF RadChart Custom Chart Title](https://www.telerik.com/products/wpf/documentation/assets/556672ed818c200af6349e2391d8601c/radchart_features_charttitle_02.png)

If you want to learn more about styling the **ChartTitle** take a look at the [Customizing Title](https://www.telerik.com/products/wpf/documentation/controls/radchart/styles-and-templates/styling-and-appearance-styling-chart-title) topic.

## See Also

* [Styling the Chart Title](https://www.telerik.com/products/wpf/documentation/controls/radchart/styles-and-templates/styling-and-appearance-styling-chart-title)

* [RadChart Visual Structure](https://www.telerik.com/products/wpf/documentation/controls/radchart/general-information/visual-structure)

* [Chart Area](https://www.telerik.com/products/wpf/documentation/controls/radchart/features/chart-area)

* [Chart Legend](https://www.telerik.com/products/wpf/documentation/controls/radchart/features/chart-legend)

* [DefaultView](https://www.telerik.com/products/wpf/documentation/controls/radchart/features/default-view)
