title | page_title | description | type | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
How to Add Chart Title to RadChartView |
Add Header to RadCartesianChart |
Add a caption on top of RadCartesianChart using a TextBlock. |
how-to |
kb-chartview-add-chart-title |
0 |
title,header,chartview |
1425857 |
kb |
Product Version | 2019.2.618 |
Product | RadChartView for WPF |
How to add a title to RadCartesianChart.
To add a title, add the chart and a TextBlock in a Grid panel with two RowDefinitions.
{{region kb-chartview-add-chart-title-0}} <Grid.RowDefinitions> </Grid.RowDefinitions>
<TextBlock Text="Chart Title" HorizontalAlignment="Center"/>
<telerik:RadCartesianChart Grid.Row="1">
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorLinesVisibility="Y" />
</telerik:RadCartesianChart.Grid>
<telerik:RadCartesianChart.Series>
<telerik:BarSeries>
<telerik:BarSeries.DataPoints>
<telerik:CategoricalDataPoint Category="January" Value="2" />
<telerik:CategoricalDataPoint Category="February" Value="5" />
<telerik:CategoricalDataPoint Category="March" Value="3" />
<telerik:CategoricalDataPoint Category="April" Value="10" />
<telerik:CategoricalDataPoint Category="May" Value="9" />
<telerik:CategoricalDataPoint Category="June" Value="7" />
<telerik:CategoricalDataPoint Category="July" Value="1" />
</telerik:BarSeries.DataPoints>
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
</Grid>
{{endregion}}
- [Getting Started RadChartView]({%slug radchartview-introduction%})