Articles in this section
Category / Section

How to add footer content to WPF SfChart?

2 mins read

Description:

This article demonstrates how to add footer content to a WPF SfChart by arranging the chart and footer within a Grid layout.

Solution:

You can set footer content to WPF Chart by placing our 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>

Output:


Chart with footer in WPF


Conclusion

I hope you enjoyed learning about how to add footer content to WPF SfChart.

You can refer to our WPF Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF Chart example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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