Unplanned
Last Updated: 24 Nov 2022 11:33 by Clint
Clint
Created on: 24 Nov 2022 11:33
Category: Chart
Type: Feature Request
1
Chart: Provide an option to add a title

Add an option to define chart title. 

 Currently we can achieve this by adding a label on the top/bottom of the chart.

Example:

<Grid RowDefinitions="Auto,*">
    <Label Grid.Row="0" Text="Chart title"/>
    <telerik:RadCartesianChart x:Name="chart" Grid.Row="1" AutomationId="chart">
        <telerik:RadCartesianChart.BindingContext>
            <local:ViewModel />
        </telerik:RadCartesianChart.BindingContext>
        <telerik:RadCartesianChart.HorizontalAxis>
            <telerik:CategoricalAxis />
        </telerik:RadCartesianChart.HorizontalAxis>
        <telerik:RadCartesianChart.VerticalAxis>
            <telerik:NumericalAxis />
        </telerik:RadCartesianChart.VerticalAxis>
        <telerik:RadCartesianChart.Series>
            <telerik:BarSeries CategoryBinding="Category"
                                ValueBinding="Value"
                                ItemsSource="{Binding Data}" />
        </telerik:RadCartesianChart.Series>
    </telerik:RadCartesianChart>
</Grid>

0 comments