Articles in this section
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>

Screenshot

Chart with footer in WPF

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied