Category / Section
How to add footer content to WPF SfChart?
1 min read
You can set footer content to SfChart by placing SfChart in the upper row and setting footer in a row beneath in the Grid’s RowDefinitions. The following code sample demonstrates how to set footer content to SfChart.
XAML
<Grid> <Grid.RowDefinitions> <RowDefinition Height="80*"/> <RowDefinition Height="20"/> </Grid.RowDefinitions> <chart:SfChart Grid.Row="0"> … </chart:SfChart> <Grid Grid.Row="1" > <Border BorderThickness="0.5" BorderBrush="Black" CornerRadius="5" Height="38"> <TextBlock Text="Chart Area Footer" HorizontalAlignment="Center" FontWeight="Bold" Margin="5" FontSize="20"/> </Border> </Grid> </Grid>