Xamarin.Android | ComponentOne
Controls / FlexChart / Features / Header and Footer
In This Topic
    Header and Footer
    In This Topic

    You can add a title to the FlexChart control by setting its Header property. Besides a header, you may also set a footer for the chart by setting it Footer property. There are some additional properties that are to be used to customize the header and footer text in a FlexChart.

    The image below shows how the FlexChart appears, after these properties have been set.

    Flexchart with customized header and footer notes

    The following code examples demonstrate how to set these properties in C#. These examples use the sample created in the Quick Start section.

    In Code

    C#
    Copy Code
    //Set Header
    mChart.Header = "Random Sales Data by ComponentOne";mChart.HeaderAlignment = Android.Views.GravityFlags.Center;
    //Set FootermChart.Footer = "List of Countries";mChart.FooterAlignment = Android.Views.GravityFlags.Center;